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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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'.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.