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

I am trying to support HTTPS traffic with the mod_ssl module on my website. I am running an Amazon EC2 instance for my server. I have installed and configured the basic LAMP packages. However, when I go to put in SSL-specific commands in my apache config files (ie. SSLEngine, SSLCertificateFile, etc) it spits out an error and says that I have a syntax error or the module is not loaded.

My next step was to try $ sudo yum install mod_ssl. However, yum comes back and says, "Processing Conflict...Error: httpd24-tools conflicts with httpd-tools". So, I figured that mod_ssl is included in the httpd-tools package. I then ran $ sudo yum install httpd24-tools but it comes back and tells me I already have that package installed.

Now how come I have the httpd-tools package installed, and mod_ssl is not loaded in my system? Isn't mod_ssl included in the httpd-tools package? I created a test php file <?php echo phpinfo(); ?> just to make sure. My suspicions were confirmed—no 'mod_ssl' is listed under the apache2handler loaded modules table in phpinfo.

So, I'm not exactly sure how to load in/install/configure mod_ssl with the Amazon Linux AMI's. Any help would be appreciated. Here's my current specs:

  • Amazon Linux AMI 2012.09
  • Apache 2.4
  • PHP 5.4

Ran this command to setup server:

$ sudo yum install httpd24 php54 php54-devel php54-mysql php54-common php54-gd php54-xml php54-mbstring php54-mcrypt php54-pecl-apc mysql-server mod_ssl openssl httpd54-devel mysql libjpeg libpng phpmyadmin
share|improve this question
What Apache config did you use? I'd guess syntax error over module not loaded, as it should be standard in most distributions at this point. – ceejayoz Jan 15 at 17:17
Came across an answer while scouring forums. "All Apache modules built for httpd-2.4 have been renamed mod24_<name>. So for the SSL Apache module the package is called mod24_ssl." Solution: $ sudo yum install mod24_ssl. This installed the package successfully, but now when I try and restart my Apache server, it fails to start httpd. Any thoughts? – kaffolder Jan 15 at 17:28
Check your logs. – ceejayoz Jan 15 at 17:33
:) Sometimes it's the easy things. ;) All I had to do was tweak a few settings in my /etc/httpd/conf.d/ssl.conf file. Good to go! Thanks for the help! – kaffolder Jan 15 at 17:36

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.