If you have problem with Apache 2.4, where the server reboot the service itself and no longer restart.
This was the error that appears whenever you try to start it:
Copy to Clipboard
$ tail -f error.log
[auth_digest:error] [pid 11716] (2)No such file or directory:
AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm.11716
[auth_digest:error] [pid 11716] (2)No such file or directory:
AH01760: failed to initialize shm - all nonce-count checking, one-time nonces,
and MD5-sess algorithm disabled
In addition, systemd reported the same problem:
Copy to Clipboard
$ systemctl status -l httpd.service
- httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since ...
The cause is shown in the first error message:
Copy to Clipboard
Failed to create shared memory segment on file /run/httpd/authdigest_shm.11716
If we traced this, we noticed the directory /run/httpd no longer existed.
SOLUTIONS:
The simple fix in this case, was to re-create that missing directory:
Copy to Clipboard
mkdir /run/httpd
chown root:httpd /run/httpd
chmod 0710 /run/httpd
The directory should be owned by root and writable for the root user. The Apache group (usually httpd
), needs executable rights to look into the directory.
Thanks.
Leave A Comment
You must be logged in to post a comment.