Issue:

Here are the logs from  from the log file when apache stopped working.

##################################
[Tue Apr 28 05:01:30 2009] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
[Tue Apr 28 05:01:30 2009] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Apr 28 05:01:30 2009] [notice] FastCGI: process manager initialized (pid 13584)
[Tue Apr 28 05:01:30 2009] [emerg] (22)Invalid argument: could not call shmget
[Tue Apr 28 05:01:31 2009] [notice] mod_security/1.9.4 configured
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.227.130:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.227.134:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.227.132:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.227.133:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.235.222:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [warn] NameVirtualHost 72.9.230.21:80 has no VirtualHosts
[Tue Apr 28 05:01:34 2009] [notice] FastCGI: wrapper mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Apr 28 05:01:34 2009] [notice] FastCGI: process manager initialized (pid 13671)
–>
[Tue Apr 28 05:01:35 2009] [emerg] (22)Invalid argument: could not call shmget
–>
[Tue Apr 28 05:01:35 2009] [alert] FastCGI: read() from pipe failed (0)
[Tue Apr 28 05:01:35 2009] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared – bye

##################################################################

Fix:

Add the following  line in /etc/fstab  :

tmpfs                   /dev/shm                tmpfs   defaults        0 0
and mount this partition .


Shares
Contact Us On WhatsApp