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.

Every update makes HTTPD go down.. Look.

Discussion in 'General Discussion' started by chris8lunch, Oct 21, 2006.

  1. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    ...Syntax error on line 380 of /usr/local/apache/conf/httpd.conf:
    Cannot add module via name 'mod_security.c': not in list of loaded modules
    /etc/rc.d/init.d/httpd start: httpd could not be started
    The default audit log is located at /user/local/apache/logs/audit_log
    All pages that are prevented from loading by mod_security will have a 406 error

    Could someone please tell me how to fix this? Thanks.
     
  2. DTmonk

    DTmonk Member

    Joined:
    Jul 31, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    try this

    login as root,,
    then type> vim /usr/local/apache/conf/httpd.conf
    Comment out that line mod_security.c

    then type> service httpd restart

    that worked for me yesterday.
     
  3. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Doesn't that just delete the line? Once cPanel does its next update, it will do it again!
     
  4. DTmonk

    DTmonk Member

    Joined:
    Jul 31, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    Mmmm

    Yes, that was a quick fix,,,, but I was worryd that your server was down like my server was for 3hours. :eek:

    DTmonk
    ----------
    ----------
     
  5. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Yes mine did the same, but I'm asking HOW DO I FIX THIS so when cPanel updates again it won't no longer do that?? Am I missing something I should have in the server??
     
  6. consultorpc

    consultorpc Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2003
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    This is weird, we have a lot of errors also:

    # /scripts/restartsrv_httpd
    Syntax error on line 241 of /usr/local/apache/conf/httpd.conf:
    Cannot add module via name 'mod_rewrite.c': not in list of loaded modules
    /etc/rc.d/init.d/httpd start: httpd could not be started

    Any cPanel FIX yet ?
     
  7. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    The only way I find a fix is to edit /usr/local/apache/conf/httpd.conf and delete mod_rewrite.c from the line.
     
  8. Phenomenon

    Phenomenon Member

    Joined:
    Aug 21, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    ... or even, reinstall mod_rewrite?
     
  9. chris8lunch

    chris8lunch Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    How?:confused:
     
  10. consultorpc

    consultorpc Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2003
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    If it's help:

    httpd was failing because the LoadModule entries for mod_rewrite and
    mod_expires were missing from httpd.conf. I recreated these entries, and was
    successfully able to start httpd after doing so.
     
  11. boyforeigner

    boyforeigner Well-Known Member

    Joined:
    May 18, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I also had this problem 2 times. Any one know how to fix, so it not happen again ?
     
Loading...

Share This Page