Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install mod_ssl on my server with:

yum install mod_ssl

All i get in response is:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Setting up Install Process
No package mod_ssl available.
Error: Nothing to do

I am trying to install a self signed SSL-certificate, and I realized I was missing mod_ssl when I couldn't find the ssl.conf file.

How can I install mod_ssl?


repo id                       repo name                                status
base                          CentOS-6 - Base                          5,932+362
extras                        CentOS-6 - Extras                                4
updates                       CentOS-6 - Updates                          261+65
repolist: 6,197
share|improve this question
Are you really using CentOS4, which is about to be desupported? – cjc Jan 31 '12 at 16:56
Hm, my CentOS 4 has mod_ssl. You may want to check that you have reasonable yum repositories in your /etc/yum.repos.d. – Bittrance Jan 31 '12 at 17:35
Do a yum repolist and post it... – Nils Jan 31 '12 at 20:56
added the repolist – Anders Feb 6 '12 at 20:42
up vote 2 down vote accepted

and also try

yum search mod_ssl 


yum install mod_ssl.XX <- as listed from yum search output.

if you can't find any of the packages try and install source forge repo, it has thousands of packages and mod_ssl is there

share|improve this answer
This worked for me with RHEL7. Thanks. – a coder Jan 28 at 15:03

Try clear cache:

yum clean packages
yum install mod_ssl
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.