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_Bw Configuration

Discussion in 'General Discussion' started by marcsanders, Feb 4, 2013.

  1. marcsanders

    marcsanders Registered

    Joined:
    Feb 4, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Everyone,

    I am having a bit of trouble configuring Mod_BW with Cpanel. I am familiar with the install in a normal Apache environment, but Cpanel seems to be a bit more complicated due to the need to use configuration files.

    Normally, in a normal Apache without Cpanel setup, I would put this in httpd.conf:

    Code:
    <Virtualhost *>
    BandwidthModule On
    ForceBandWidthModule On
    Bandwidth all 10240
    MinBandwidth all -1
    Servername www.testwebsite.com
    </Virtualhost>
    However, with Cpanel, it is necessary to use includes since httpd.conf is not directly editable.

    As such, I have created this directory as instructed by my httpd.conf file:

    Code:
    /usr/local/apache/conf/userdata/std/2/testuser/testwebsite.com
    Inside the testwebsite.com folder, I create bwlimit.conf

    Inside bwlimit.conf, I have added the code above and then I run:

    Code:
    /scripts/ensure_vhost_includes --all-users
    
    However, when I do this, it returns me multiple errors. Is there is an issue with my syntax and am I using the .conf files incorrectly?

    Any help would be appreciated.
     
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