The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

httpd has failed .... please help me!

Discussion in 'General Discussion' started by tuan_naqn, Aug 2, 2007.

  1. tuan_naqn

    tuan_naqn Registered

    Joined:
    Aug 2, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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?
     
  3. ddunham

    ddunham Registered

    Joined:
    Mar 3, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  5. tigeryan

    tigeryan Member

    Joined:
    Sep 16, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I also meet this problem~!

    [root@soscn-x01 ~]# /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
     
  6. tigeryan

    tigeryan Member

    Joined:
    Sep 16, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    [root@soscn-x01 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
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Code:
    cd /usr/local/cpanel/apache
    make install
    
     
Loading...

Share This Page