/var/run/apache2 deleted each reboot, apache2 failed to start
folder /var/run/apache2 deleted at reboot. This cause the following error and apache failed to start.
[Sat Jul 27 14:36:09.503626 2013] [suexec:notice] [pid 1733]
AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jul 27 14:36:09.551444 2013] [auth_digest:notice] [pid 1734]
AH01757: generating secret for digest authentication …
[Sat Jul 27 14:36:09.551486 2013] [auth_digest:error] [pid 1734]
(2)No such file or directory: AH01762: Failed to create shared memory
segment on file /var/run/apache2/authdigest_shm.1734
[Sat Jul 27 14:36:09.551495 2013] [auth_digest:error] [pid 1734]
(2)No such file or directory: AH01760: failed to initialize shm - all
nonce-count checking, one-time nonces, and MD5-sess algorithm disabled
[Sat Jul 27 14:36:09.551501 2013] [:emerg] [pid 1734] AH00020:
Configuration Failed, exiting
zen86:~# httpd -v
Server version: Apache/2.4.4 (Unix)
Server built: Jun 24 2013 07:50:35
The workaround for this to add mkdir /var/run/apache2 in the init file
(from redmine: issue id 2171, created on 2013-07-27, closed on 2013-08-06)
- Changesets:
- Revision fdf39794 by Natanael Copa on 2013-08-06T08:21:05Z:
main/apache2: create pid dir at startup. ignore missing conf.d/*.conf
ref #2171
- Revision de3901a8 by Natanael Copa on 2013-08-06T08:25:03Z:
main/apache2: create pid dir at startup. ignore missing conf.d/*.conf
fixes #2171