Why httpd service fails to start by default and doesn't create /run/httpd in RHEL7?
Issue
httpdservice doesn't start by default and doesn't create directory/run/httpdautomatically?- Why do I get an error
failed adding user 'apache', exit code: 9while installinghttpdpackage? - When server is rebooted, apache fails to start.
-
Apache httpd fails to start in RHEL7 with following error messages in the Apache logs:
[auth_digest:error] [pid 930] (2)No such file or directory: AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm.930 [auth_digest:error] [pid 930] (2)No such file or directory: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled [:emerg] [pid 930] AH00020: Configuration Failed, exiting -
Both
httpd.serverandsystemd-tmpfiles-setup.serverfail on startup and fail to create/run/httpddirectory with following errors# systemctl list-units --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● httpd.service loaded failed failed The Apache HTTP Server ● systemd-tmpfiles-setup.service loaded failed failed Create Volatile Files and Directories # systemctl status systemd-tmpfiles-setup.service | grep Unknown systemd-tmpfiles[639]: [/etc/tmpfiles.d/httpd.conf:1] Unknown group 'apache'. systemd-tmpfiles[639]: [/etc/tmpfiles.d/httpd.conf:2] Unknown user 'apache'. # systemctl status systemd-tmpfiles-setup.service | grep Unknown systemd-tmpfiles[639]: [/etc/tmpfiles.d/httpd.conf:1] Unknown group 'apache'. systemd-tmpfiles[639]: [/etc/tmpfiles.d/httpd.conf:2] Unknown user 'apache'.
Environment
- Red Hat Enterprise Linux (RHEL) 7.
- Apache
httpdservice - LDAP credentials
- Apache
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
