My website is does not working unfortunately and when I checked on apache status shows the below error,

"httpd dead but subsys locked"

The error might be Semaphores arrays check status using ipcs command,


ipcs -s | grep apache

0x00000000 94404728   apache    600        1        
0x00000000 94437497   apache    600        1        
0x00000000 94470266   apache    600        1        
0x00000000 94503035   apache    600        1        
0x00000000 94535804   apache    600        1        
0x00000000 94568573   apache    600        1        
0x00000000 94601342   apache    600        1        
0x00000000 94634111   apache    600        1
...

Execute the below command for resource deleted

ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/);  print `ipcrm sem $a[1]`}'

resource(s) deleted
resource(s) deleted
resource(s) deleted
...

try to start apache server,
/etc/init.d/httpd start

if it will not started, kill the httpd process and remove httpd pid file under /var/lock/subsys

pkill -9 httpd

cd /var/lock/subsys

rm  -rf httpd

Now, trying to start apache server.