httpd has failed .... please help me!

tuan_naqn

Registered
Aug 2, 2007
1
0
51
My apache status can not be seen
I can not restart HTTP Server (Apache)

Attempting to restart httpd
Waiting for httpd to restart.... . . . . . .
httpd has failed, please contact the sysadmin.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
On the command line (login via SSH or with a physical console), do the following:

Code:
/etc/init.d/httpd restart
Are any errors output?

If none, then do this:

Code:
cd /usr/local/apache/bin
./httpd
Any errors?

Anything in the /usr/local/apache/logs files?
 

ddunham

Registered
Mar 3, 2005
2
0
151
same thing

Apache crashes on and off several times throughout the day, eventually failing and not restarting at all.

Whenever I try to restart it from the command line, it launches like everything is working but then does not load.

I am still seraching my logs to see why its dying to begin with -- but all i see is apache starting up normally for no reason. No crash messages?

WTF?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
If you are using PHP, it could be an issue with a PHP extension. Try disabling PHP, restart Apache and see whether you have the same issues.
 

tigeryan

Member
Sep 16, 2007
5
0
51
I also meet this problem~!

[[email protected] ~]# /etc/init.d/httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 1150 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd restart: httpd could not be started
 

tigeryan

Member
Sep 16, 2007
5
0
51
[[email protected] bin]# ./httpd
Syntax error on line 1150 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration