Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Danny WOng on January 14, 2003, 12:52:38 AM

Title: httpd dead but pid file exists
Post by: Danny WOng 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!  :)
Title: Re: httpd dead but pid file exists
Post by: Danny WOng 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.
Title: Re: httpd dead but pid file exists
Post by: Nathan Fowler 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.
Title: Re: httpd dead but pid file exists
Post by: Danny WOng 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?
Title: Re: httpd dead but pid file exists
Post by: Nathan Fowler 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.
Title: Re: httpd dead but pid file exists
Post by: Dan Brown on January 14, 2003, 03:43:06 AM
...or, take a look at /var/log/httpd/error_log, and see why it's crashing.
Title: Re: httpd dead but pid file exists
Post by: Danny Wong on January 14, 2003, 08:43:28 AM
checking the error log worked thanks!