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.

error in httpd.conf

Discussion in 'General Discussion' started by phantom, Jan 27, 2004.

  1. phantom

    phantom Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    I have a supposed error in httpd.conf but when I check it out, everything appears fine. I can't see the error.

    Here it is

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

    So I type in:
    pico +1197 httpd.conf

    Here's the line:

    BytesLog domlog/clientdomain.com-bytes_log

    Does anybody have any idea how to resolve this?

    Thanks!
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    You shouldn't have a BytesLog variable in your virt host entry.
     
  3. phantom

    phantom Well-Known Member

    Joined:
    Sep 17, 2002
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    That's odd, every single virtual host entry had a bytes log entry on all of my servers. Are you sure we are referring to the same thing?

    Thank you!
     
  4. amdmachine

    amdmachine Member

    Joined:
    Feb 20, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Virtual hosts entries may contain a byteslog entry as long as the module is installed and defined.

    Make sure the following are within your httpd.conf file. (use '/' within vi to search)

    LoadModule bytes_log_module libexec/mod_log_bytes.so

    and

    AddModule mod_log_bytes.c

    If they are not within your config file, try recompiling apache (/scripts/easyapache).
     
Loading...

Share This Page