How to Install mod_ssl on RHEL7 when it's missing from yum
15,127
There is no base repository (rhel-7-server-rpms
) in the output of your yum repolist
I've verified that mod_ssl
is found on base RHEL7 repository.
Use subscription-manager to re-enable that repo.
Related videos on Youtube
Author by
ServerBloke
Updated on September 18, 2022Comments
-
ServerBloke almost 2 years
I've been given a RHEL7 server with Apache 2.4.6 and OpenSSL and I would like to install mod_ssl. The issue is yum doesn't find the package:
yum install mod_ssl No package mod_ssl available. Error: Nothing to do
Also it is not found during a search, only mod_gnutls is found:
yum search mod_ssl =================================================== Matched: mod_ssl =================================================== mod_gnutls.x86_64 : GnuTLS module for the Apache HTTP server
How can I install mod_ssl? Do I need to find an rpm or install a repo to have yum find it?
Here's the output of listing httpd and openssl to show the versions:
yum list httpd openssl Installed Packages httpd.x86_64 2.4.6-67 @rhel-7-server-rpms openssl.x86_64 1:1.0.2k-8.el7 @rhel-7-server-rpms
Here's my repolist:
yum repolist repo id repo name status epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,769 webtatic/x86_64 Webtatic Repository EL7 - x86_64 649 repolist: 12,713
-
ServerBloke almost 7 yearsOk how can I re-enable the repo? I'm not familiar with subscription-manager.
-
Naveed Abbas almost 7 yearsSubscription manager is well documented by Red Hat, because every customer uses it. Try access.redhat.com/documentation/en-us/…
-
ServerBloke almost 7 yearsI did
subscription-manager repos --enable=rhel-7-server-rpms
and it saidError: 'rhel-7-server-rpms' does not match a valid repository ID.
. Then I didsubscription-manager repos --list
and gotThis system has no repositories available through subscriptions
. Can you help? -
Naveed Abbas almost 7 yearsIsn't it your answer right here:
This system has no repositories available through subscriptions
. Thesesubscriptions
are paid. You know you need to pay Red Hat, right? If you pay, they'll happily tell you all about getting yum to work, step by step. Or dig around that documentation. Or contact RHEL support. -
ServerBloke almost 7 yearsSo there is no way to get mod_ssl without contacting RedHat? I actually asked for a CentOS server but was given this to install my web app (requires ssl) then I won't have any further access. I don't have any access to pay RedHat.
-
Naveed Abbas almost 7 yearsIt doesn't make any sense to use RHEL if you cannot buy a subscription. You won't have security patches. There is an unofficial option to partly convert an existing RHEL system to CentOS, but I would rather re-install CentOS from scratch. It's a clean and quick solution.
-
Dung about 4 years@kubanczyk (I've verified that mod_ssl is found on base RHEL7 repository.) I agree that the package mod_ssl is availabe: yum install mod_ssl works for my redhat 7