Apache hangs at boot time due to RSA - Need fix
Okay, so basically, I have Debian Sarge running Apache 1.x (1.3.33 or whatever number it is).
It used to be fine until I added in SSH abilities.
When I did that, when I rebooted the server (very seldom, but it happens), it would just stop when it got to the part of the startup which loaded Apache. I was able to SSH into the server from another system, and found that Apache was not running on the system at the time, so it was getting hung before it started up for some reason.
So, I removed it from the init scripts:
So, Once I got on the system, I did an apachectl start, and I think this is why it hangs - it asks for an RSA key passphrase, and it can't do that at boot time, so it never completes that task.
It wants the passphrase because the RSA private key is encrypted. If you instead store it on the disk in plaintext, this will fix your problem.
Install the "openssl" package - probably you have it already. Now, shut down apache, cd to /etc/apache-ssl/, and do
All this assumes that your private key is stored in the default place, /etc/apache-ssl/apache.pem .
|All times are GMT -5. The time now is 04:43 AM.|