Comment 2 for bug 603211

Revision history for this message
timdaman (timdaman-gmail) wrote : Re: [Bug 603211] Re: Apache fails to start after reboot due to missing /var/run/apache2 direcotry when ssl is enabled

2.2.8-1 from what I can see. Full details can be found below.
--Tim

root@XXXXXX:/var/log# dpkg -l | grep apache
ii apache2 2.2.8-1ubuntu0.15 Next
generation, scalable, extendable web se
ii apache2-mpm-worker 2.2.8-1ubuntu0.15 High
speed threaded model for Apache HTTPD
ii apache2-utils 2.2.8-1ubuntu0.15
utility programs for webservers
ii apache2.2-common 2.2.8-1ubuntu0.15 Next
generation, scalable, extendable web se
ii libapache2-mod-jk 1:1.2.25-2
Apache 2 connector for the Tomcat Java servl
root@q9web3:/var/log# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"
root@XXXXXX:/var/log# apache2 -v
Server version: Apache/2.2.8 (Ubuntu)
Server built: Mar 9 2010 21:51:02

--Tim

On Thu, Jul 8, 2010 at 1:28 PM, Stefan Fritsch <email address hidden> wrote:

> This should be fixed since 2.2.4-2. Which version are you using?
>
> --
> 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 direct subscriber
> of the bug.
>
> Status in “apache2” package in Ubuntu: New
>
> Bug description:
> 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.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/603211/+subscribe
>