marcsanders

Registered
Feb 4, 2013
1
0
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.