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.

Mod_bandwidth kills Apache. Ends with moral of the story ;-)

Discussion in 'cPanel Developers' started by Roy@ENHOST, Oct 1, 2004.

  1. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    Hi guys,

    My server went down today and I spent so much time troubleshooting.
    I was starting to believe in server gnomes in the process.


    For some reason,I installed Mod_bandwidth today.
    For some reason server screwed shortly after that.

    After 3 hrs of troubleshooting I found out that it was due to a syntax error caused by mod_bandwidth.

    I received the syntax error when I did a httpd restart.

    browsed to the line in question:
    <IfModule mod_bandwidth.c>
    <Directory "/home/user/public_html">
    BandWidth all 
    </Directory>
    </IfModule>

    </VirtualHost>

    Line 1670 was the culprit.
    I bolded it.

    After removing those lines from httpd.conf&mod_bw and rebooting the server, everythings back to normal.
    Moral of the story: there is no such thing as server gnomes. :D
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Other moral? There is no such thing as a perfect auto-install, certain things should stay manual. :D
     
  3. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    I learnt not to be so adventurous.
    Another moral:Curiousity kills the server.
    :D

    Hope this can help those who are experiencing similar problem.
     
  4. cPanelBilly

    cPanelBilly Guest

    actually the error was here:
    BandWidth all 

    When you ran the setbwlimit it looks like you used something besides a number for the limit.
     
  5. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    I only used number.
     
  6. cPanelBilly

    cPanelBilly Guest

    I cant verify the issue, however I have made the script verify #'s are put in otherwise quit.
     

Share This Page