Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to install mod_ssl on CentOS 4.4

Status
Not open for further replies.

pablo1999

IS-IT--Management
Jan 17, 2005
15
0
0
US
Hello Everyone,

I' currently using CentOS 4.4 on a virtual server from a web hosting company.

I tried using vyum to install mod_ssl but I get the following error:

[root@vhost3 etc]# vyum mail1 -- install mod_ssl
You are using a version of yum which is insecure and broken in chroot
related operations; either apply the patches shipped in the 'contrib/'
directory of util-vserver, or ask the author of yum to apply them
(preferred).

In the meantime, 'vyum' will continue with dirty hacks which might not
work when the vserver is running and local DOS attacks are possible.
No Repositories Available to Set Up
No Match for argument: mod_ssl

So I decided to install mod_ssl using rpm. The problem is that when I installed mod_ssl in the virtual server, it gets installed but the apache is not detecting it. After the mod_ssl installation, I checked the to see if the /etc/httpd/modules/mod_ssl.so and it was not there.

Do I have to install apache again with mod_ssl support? How can I do that without breaking the installation of apache that its already there?

Please Help!


This is some information about my system:

This is the output of the uname command:

Linux test.domain.tld 2.6.14.3-vs2.0.1-rc5 #1 SMP Tue Dec 6 14:19:56 EST 2005 x86_64 x86_64 x86_64 GNU/ Linux

I'm currently have installed the following version of Apache:

Name : httpd Relocations: (not relocatable)
Version : 2.0.52 Vendor: CentOS
Release : 22.ent.centos4 Build Date: Thu 05 Jan 2006 12:57:43 PM EST

This is the version of mod_ssl i tried to install:

Name : mod_ssl Relocations: (not relocatable)
Version : 2.0.52 Vendor: CentOS
Release : 22.ent.centos4 Build Date: Thu 05 Jan 2006 12:57:43 PM EST
 
You should have had mod_ssl installed already. The module doesn't get loaded in the main httpd.conf though. It gets loaded using the LoadModule directive in /etc/httpd/conf.d/ssl.conf. This file also contains all the global configs for ssl as well. The conf.d directory gets pointed to by the 'Include' directive in hhtpd.conf so everything in there with the extension of .conf gets read when httpd starts up. All you should have to do is create a directory container for the vhost using ip based addressing then turn on the ssl engine and add the key stuff for the domain and you're all set.



 
To put your mind at ease, you do not have to recompile, reinstall or break apache in anyway. In fact if this is a 'live' server, you can use the 'graceful' option rather than the more harsh 'restart'.

 
I first ran this command:

vrpm myserver -- -qi mod_ssl

The output showed that the mod_ssl is not installed.

I installed mod_ssl running the following command:

vrpm myserver -- -ivh mod_ssl

It installs with no errors.

When I restart Apache it gives an error saying that the /etc/httpd/modules/mod_ssl.so does not exist.


Any inputs?

Thanks.






 
It's possible that it is not being linked at run-time. If you have a problem with some of your shared object libraries (.so files)not being found, sometimes you can run this command to take care of that:

Code:
ldconfig -v



 
Still not working. The mod_ssl.so module is not listed under /etc/httpd/modules directory. When I restart Apache it complaints that the module doesn't exist.

Any more inputs?
 
I found the problem when using vyum to install mod_ssl. The link to the common repos directory was damaged. I fixed it and installed mod_ssl using vyum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top