Koozali.org: home of the SME Server

httpd dead but pid file exists

Danny WOng

httpd dead but pid file exists
« on: January 14, 2003, 12:52:38 AM »
My Http server is dead on SME 5.5 but I cant get it to restart.  Is there anything I can do to troubleshoot this?  I have looked in the postings but found nothing.  I do ps aux | grep httpd but no pid exists really.  I want to get it back up so I can backup my system then upgrade box.  But it is dead.  Please HELP!  :)

Danny WOng

Re: httpd dead but pid file exists
« Reply #1 on: January 14, 2003, 12:54:15 AM »
additional info:  I have tried rebooting it, restarting it, and swearing at it.  None of the above work.

Nathan Fowler

Re: httpd dead but pid file exists
« Reply #2 on: January 14, 2003, 01:55:08 AM »
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd-admin stop
rm -rf /var/run/httpd.pid
rm -rf /var/run/httpd-admin.pid
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/httpd-admin start

That should work.

Danny WOng

Re: httpd dead but pid file exists
« Reply #3 on: January 14, 2003, 02:11:29 AM »
Unfortunately this did not work.  The httpd.pid and httpd-admin.pid did not exist.  I entered the commands anyway, recieved no errors, but after keying those commands as you posted, I still get httpd is dead but pid file exists.  :(  any other suggestions?

Nathan Fowler

Re: httpd dead but pid file exists
« Reply #4 on: January 14, 2003, 03:39:43 AM »
Nuts.

cat /etc/httpd/conf/httpd.conf|grep pid

Then, see if that pid-file exists, if it does, nuke it.

Dan Brown

Re: httpd dead but pid file exists
« Reply #5 on: January 14, 2003, 03:43:06 AM »
...or, take a look at /var/log/httpd/error_log, and see why it's crashing.

Danny Wong

Re: httpd dead but pid file exists
« Reply #6 on: January 14, 2003, 08:43:28 AM »
checking the error log worked thanks!