[getting error] httpd dead but subsys locked | on centos 5.7 64 bit

Status
Not open for further replies.

soum111

Banned
Banned
509
2011
68
0
hi...

can any body help me about this......

my httpd status:

httpd dead but subsys locked

so googled & found this http://geekswithblogs.net/HumpreyCogay/archive/2011/05/16/centos_httpd_dead_but_subsys_locked_resolve.aspx

and ran these coomands on root

1) ipcs -s | grep apache to chk check for running processes
2) ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}' to stop processes
3) cd /var/lock/subsys
rm httpd to Remove httpd lock file

now my httpd status:

httpd stoped

then Resterting httpd through below command
/etc/init.d/httpd restart

now my httpd status:

httpd dead but subsys locked

AGAIN

wtf

whenever i tried to stop httpd shows Failure
whenever i start httpd shows ok


my main problem is....for the above issue, i cant access mt vps through http
 
1 comment
first remove the lock file
rm /var/lock/subsys/httpd
then kill all the httpd process
killall -9 httpd
then start the http process. If problem facing again please check the disk usage and vps configuration
 
Status
Not open for further replies.
Back
Top