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.

cannot start httpd

Discussion in 'General Discussion' started by beanvez, Jan 9, 2005.

  1. beanvez

    beanvez Registered

    Joined:
    Jan 9, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I am in big trouble, i updated apache from my whm and now httpd won't start it says

    Syntax error on line 1115 of /usr/local/apache/conf/httpd.conf:
    Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration

    when i try to do it manually.

    Help would be greatly appreciated i worked very hard on SEO and dropped 90 ranks in 1 day because of the down time, also when it was up my php files wern't working, is this due to a auto update by cpanel that might have had bugs?

    Help greatly appreciated!

    Thanks
    Mike Smith
     
  2. philb

    philb Well-Known Member

    Joined:
    Jan 28, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Looks like you told easy apache to reset the apache config (which you shouldnt do).

    You'll need to check your config file which is at /etc/httpd/etc/httpd.conf

    Search for LoadModule

    You'll see some lines that look something like:

    LoadModule rewrite_module libexec/mod_rewrite.so
    #LoadModule php4_module libexec/libphp4.so
    LoadModule bwlimited_module libexec/mod_bwlimited.so
    LoadModule bytes_log_module libexec/mod_log_bytes.so
    LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so

    You must have the bytes_log_module line in there. The php4 module might not be commented out in your setup - don't alter anything other than to add the bytes_log_module line there if it's missing.

    Further down you'll see lots of AddModule lines - make sure:

    AddModule mod_log_bytes.c

    is in the list (it'll most likely be near the bottom of the addmodule lines).

    Save it, and restart apache with /etc/init.d/httpd restart

    and see what it says.
     
  3. beanvez

    beanvez Registered

    Joined:
    Jan 9, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thank You so much but now i get this error

    /etc/rc.d/init.d/httpd configtest
    Syntax error on line 2 of /usr/local/apache/conf/httpd.conf:
    Invalid command 'Alias', perhaps mis-spelled or defined by a module not included in the server configuration

    Any one please?
    Thanks
     
  4. philb

    philb Well-Known Member

    Joined:
    Jan 28, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Wow, your httpd.conf is pretty messed up. Look in /etc/httpd/etc/ for a recent backup copy (mostlikely from when you last ran easyapache) (ls -la will show you creation/update dates) and copy it back over httpd.conf.

    It might be wise to make a copy of httpd.conf to 'httpd.conf.my-one' or something just in case the backup you restore is even worse than what you already have.
     
Loading...

Share This Page