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.

Problem starting apache

Discussion in 'EasyApache' started by vihu, Apr 26, 2007.

  1. vihu

    vihu Registered

    Joined:
    Feb 2, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm facing problems starting apache. The error reported is :

    Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
    /usr/local/apache/bin/apachectl start: httpd could not be started

    Please help me to sort out this issue.

    Thanks
     
  2. AMD64

    AMD64 Active Member

    Joined:
    Jun 19, 2005
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Edit your /usr/local/apache/conf/httpd.conf and add the Byteslog module

    nano -w /usr/local/apache/conf/httpd.conf

    Now look through the "AddModule" entries for the "AddModule mod_log_bytes.c" (without quotes) if its not there add it below the last AddModule entry...

    Now look through the "LoadModule" entries for the "LoadModule bytes_log_module libexec/mod_log_bytes.so" (without quotes) if its not there add it below the last LoadModule entry...

    Save the file

    Hit Control + X, hit y and press enter

    Restart Apache

    service httpd restart
     
  3. lanmonkey

    lanmonkey Member

    Joined:
    Jun 7, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    for anyone reading this who has a similar problem:

    I had the same problem as vihu and I followed AMD64's instructions but httpd would still not start.

    I then had to re-compile mod_log_bytes.c and it httpd started fine:

    cd /usr/local/cpanel/apache
    /usr/local/apache/bin/apxs -iac mod_log_bytes.c

    full details were found here:
    http://www.mydigitallife.info/2007/...limited-mod_log_bytes-or-mod_bandwidth-files/

    thanks 4 all your help.
     
  4. jondolar

    jondolar Well-Known Member

    Joined:
    Feb 15, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Fixed mine

    cd /usr/local/cpanel/apache
    /usr/local/apache/bin/apxs -iac mod_log_bytes.c

    That fixed my problem as well.
     
  5. jdatwood

    jdatwood Active Member

    Joined:
    May 10, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Worked here as well. Thanks guys!
     
  6. Thom2006

    Thom2006 Registered

    Joined:
    Jun 17, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi Lads,

    i tryed to do that but my access was denied and im root of my server any help
     
  7. Commrade

    Commrade Member

    Joined:
    Feb 19, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    :) check out file permissions or you have permission for the command you are using.
     
  8. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hey guys

    A much better solution is to rebuild apache.

    Go into WHM - Apache Update

    Untick rebuild apache if its up 2 date. That will make sure apache is rebuilt !!

    done :)
     
  9. CoreISP.net

    CoreISP.net Active Member

    Joined:
    May 25, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    This did not fix this specific issue on a couple of my servers,
    the other options in this thread provided the solution though.
     
  10. LiquidWebBenny

    PartnerNOC

    Joined:
    Nov 3, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lansing, Mi
    thanks.

    cd /usr/local/cpanel/apache
    /usr/local/apache/bin/apxs -iac mod_log_bytes.c

    worked for me.
     
Loading...

Share This Page