Why does initial start of httpd service on LXC fail ?

Solution Verified - Updated -

Issue

  • httpd service fails to start during the initial start of the LXC after installing the http package from the host .
  • Initial start of httpd service fails with following error .
# cat /var/log/httpd/error_log 
[Sat Sep 20 04:34:14.412055 2014] [suexec:notice] [pid 1222] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Sep 20 04:34:14.419151 2014] [auth_digest:notice] [pid 1222] AH01757: generating secret for digest authentication ...
[Sat Sep 20 04:34:14.419189 2014] [auth_digest:error] [pid 1222] (2)No such file or directory: AH01762: Failed to create shared memory segment on file /run/httpd/authdigest_shm.1222
[Sat Sep 20 04:34:14.419204 2014] [auth_digest:error] [pid 1222] (2)No such file or directory: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled
[Sat Sep 20 04:34:14.419208 2014] [:emerg] [pid 1222] AH00020: Configuration Failed, exiting
  • After installing httpd on LXC filesystem from a host , the httpd service does not start until a reboot .
# yum install httpd --installroot=/path/to/chroot

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In