Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    493
    Likes Received:
    0
    Trophy Points:
    316
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    493
    Likes Received:
    0
    Trophy Points:
    316
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    493
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Los Angeles California
    I only used number.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelBilly

    cPanelBilly Guest

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice