[Bug 603211] [NEW] Apache fails to start after reboot due to missing /var/run/apache2 direcotry when ssl is enabled
timdaman
603211 at bugs.launchpad.net
Thu Jul 8 16:28:00 BST 2010
Public bug reported:
Binary package hint: apache2
For some reason after I rebooted my apache2 server the /var/run/apache2
directory disappeared. This directory is needed to support mod_ssl which
makes use of it to store "SSLSessionCache" and "SSLMutex". Apache2
cannot be started with ssl enabled and the /var/run/apache2 is directory
missing. It will log the following message
[Thu Jul 08 00:15:15 2010] [error] (2)No such file or directory: Cannot create SSLMutex with file `/var/run/apache2/ssl_mutex'
Configuration Failed
The solution is to recreat this directory. I am using the following code
stub
[ -d /var/run/apache2 ] || mkdir /var/run/apache2
There are several solutions to this issue
1) Ensure /var/run/apche2 doesn't get deleted on reboot
2) Ensure startup scripts verify /var/run/apche2 exists and create it if missing
3) In /etc/apache2/mods-available/ssl.conf adjust "SSLSessionCache" and "SSLMutex" to store these in a more permanent location.
I also have run into this issue while using the OCF startup script
included with the "heartbeat" package.
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
--
Apache fails to start after reboot due to missing /var/run/apache2 direcotry when ssl is enabled
https://bugs.launchpad.net/bugs/603211
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to apache2 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list