Issue Identified:
httpd does not start after reboot, due to a missing /run/httpd folder in the /run tmpfs.
Actual results:
httpd is not running, and this error is in the logs:
[root@siren ~]# systemctl start httpd
Job for httpd.service failed because the control process exited
with error code.
See “systemctl status httpd.service” and “journalctl -xe” for
details.
[root@siren ~]# tail -n 3 /var/log/httpd/error_log
[Sun Sep 04 14:06:12.019381 2016] [auth_digest:error] [pid 1490]
(2)No such file or directory: AH01762: Failed to create shared
memory segment on file /run/httpd/authdigest_shm.1490
[Sun Sep 04 14:06:12.019394 2016] [auth_digest:error] [pid 1490]
(2)No such file or directory: AH01760: failed to initialize shm –
all nonce-count checking, one-time nonces, and MD5-sess algorithm
disabled
[Sun Sep 04 14:06:12.019404 2016] [:emerg] [pid 1490] AH00020:
Configuration Failed, exiting
Expected results:
httpd should be able to start automatically after reboot, and
should be able to be manually started after a reboot as well.
Additional info:
Manually creating /run/httpd temporarily fixes the problem, but the directory is erased after next boot and the problem returns.
[root@siren ~]# mkdir /run/httpd
[root@siren ~]# systemctl start httpd # Success!