Recompile Apache2 but add SSL without damaging Mysql/PHP installation

Fedora Core 3
Running Apache 2.0.55, MySQL 4.1, PHP 4.3.2 (all installed from source)

Ok, so the problem is that I did not install SSL when I compiled Apache2 and I want to add open_ssl (or mod ssl ??) to the current apache2 installation.  I am assuming, from reading other articles, that I will need to run ./configure again for apache2 but add the SSL configure options.

Question 1: If I do recompile apache with SSL, will this step on my current MySQL /PHP installations?  I don't want to have to reinstall PHP and MySQL all over again

Question 2: this current server previously had apache2 with SSL installed and I see an existing KEY stored in /home/ssl with two files: localhost.key and localhost.key.unsecure.  When I configure SSL, should I somehow point to these files to use that key?  I can't find a .csr file at all.

Question 3: Here is the ./configure command I used (that is lacking SSL):
./configure    --prefix=/usr/local/apache2    --enable-so    --enable-auth-digest    --enable-rewrite    --enable-setenvif    --enable-mime    --enable-deflate    --enable-headers

  So if I wanted to recompile with SSL exactly what options do I add to the configur line, and where exactly do I install from?

Who is Participating?
First install (if you didn't installed it previously) OpenSSL library (
After OpenSSL installation You should add to yor configure line option --enable-ssl. So in your case it will look like:
./configure    --prefix=/usr/local/apache2    --enable-so    --enable-auth-digest    --enable-rewrite    --enable-setenvif    --enable-mime    --enable-deflate    --enable-headers --enable-ssl

After compilation and installation configure you httpd.conf (and additional ssl.conf) to have an SSL virtual host. Check for details of configuration.
You PHP module installtion will not be broken.

djs120Author Commented:
And after I reinstall apache2 with SSL, how can I install the localhost.key file that already exists on the server?  Will I have to go through with the temporary 30 day SSL that comes with the openSSL setup?
you should point to that file in the ssl.conf file. Check SSLCertificateKeyFile directive
djs120Author Commented:
Sorry if this is a dumb question, but do I need to do anything with "mod_ssl" and apache, or does "--enable-ssl" automatically setup mod_ssl?
djs120Author Commented:
Worked great with no problems.  All I had to do was copy the "ssl.crt" and "ssl.key" directories from the old apache installation and copy them over into the conf/ dir of the new apache install and restart with 'apacheclt startssl'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.