Forum Moderators: phranque

Message Too Old, No Replies

httpd keeps failing

         

Chriz1977

11:24 am on Oct 19, 2006 (gmt 0)

10+ Year Member



Hi
Ive just found that httpd has failed on one of my servers and wont restart. I keep getting this message


aiting for httpd to restart.... . . . . . . . . . . finished.

httpd status

root 16095 0.6 4.2 20664 19320? S 11:00 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd

httpd has failed, please contact the sysadmin.


Not very helpfull.

I didnt do anything to cause it to fail but I cant sus out why it wont restart.

Anyone got any ideas?

Cheers
Chriz
Edit/Delete Message

havokmedia

1:23 pm on Oct 20, 2006 (gmt 0)

10+ Year Member



WHM is pretty vague when desribing the error.

I assume you have root access and can SSH into the server.

From root shell...

1. cd /etc/httpd/bin
2. httpd configtest

It should look like this:

root@server [/etc/httpd/bin]# httpd configtest
Syntax OK
---
Yours will probably spit back some errors, hopefully this will help you diagnose the problem.

tsalmark

3:59 am on Oct 21, 2006 (gmt 0)

10+ Year Member



I agree with havokmedia, noting that apachectl configtest from any directory will probably also work. Try tailing the log files.
And a fun one: If you have set a virtual domain log file set to a non existant directory or non-writable file you may not see any error message at all. Probably the output from configtest will give you what you need though.