Background:
I’m not a server guy but recently I had to compile a LAMP set-up from source which means I have used a combo of instructions/tutorials and general finger-crossing to get my environment right.
The Linux box was good to go so I downloaded that (at the time) latest sources for apache / php / mysql / OpenSSL and then compiled/installed them. (ie. configure;make;make install…) It’s the OpenSSL part that has me scratching my head. I assumed it was needed to make ssl work with apache but our actual server guy seems to think it’s already bundled and wondered why I downloaded OpenSSL separately. Since then I have looked around online and from what I can tell, you do need OpenSSL - apache’s mod_ssl documentation even says “This module relies on OpenSSL to provide the cryptography engine.” (reading it like that, it seems very obvious)
Finally getting to the point:
Is OpenSSL bundled with apache, or did it used to be? Assuming it’s not, is the right way then to compile apache including this kind of statement telling apache where to find OpenSSL: “–with-ssl=/path_to_openssl_folder/ssl”
Nowhere does it say it’s bundled… in fact, it seems it was never even considered due to the US being jerks about cryptography… only after it was no longer a felony to send crypto data out was mod_ssl even added to Apache as an official module! (If you wanna have a nice read, read about PGP email encryption and how the writer got around the laws heh)
Looks like you install openssl separately and already have it somewhere before using mod_ssl. I see a lot of commands typed into the shell simply using openssl, but I don’t see any place where you actually link like a var or something to a path.
Question: since you dl’d each particular thingie separately and compiled them by hand… what version of Linux are you using?? I ask because possibly there is a pre-made package for your version, which is great because it avoids Dependency Hell : ) and your programs would know where to look for stuff.
The server runs Red Hat (release 4). Originally our server guy gave me some examples for compiling everything manually and that’s what I have done ever since. Not sure if that’s just the way he does it or whether he has some reason to avoid ready-made packages.
Anyway, I think now I’ll go back and suggest that OpenSSL isn’t bundled. We’ll see what happens;)