In Progress [CPANEL-18576] Cannot disable mod_bwlimited (requires MPM, endless loop)

stephen_adglare

Registered
Feb 8, 2019
4
0
1
Europe
cPanel Access Level
Root Administrator
Hello,

Each time I disable mod_bwlimited under Apache Modules, it asks me to choose an MPM. When I pick one (any of the 4 available), mod_bwlimited is automatically enabled again. Disabling it requires me again to choose an MPM, so we're in an endless loop here.

I'm on CentOS 7, WHM v76.0.18.

Thanks in advance for your help!
Best,
Stephen

mod_bwlimited_error.png
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
HI @stephen_adglare

After some reproduction of this issue, I discussed this with the team responsible for EasyApache. They are aware of this issue and have a case open for it currently. The case ID is CPANEL-18576.

Ultimately though, that package cannot be removed and it most likely will remain unremovable when the case is resolved as well, as it's a required package. I should also point out that though there is the ability to limit bandwidth usage you don't have to limit your users. You can manage this at WHM>>Account Functions>>Limit Bandwidth Usage.

When there is more information or the case is resolved I'll update here as well.

Thanks!
 

stephen_adglare

Registered
Feb 8, 2019
4
0
1
Europe
cPanel Access Level
Root Administrator
Just to elaborate a bit more on this... here's an strace output from the web server:

stat("/home/website/public_html/index.php", {st_mode=S_IFREG|0644, st_size=8837, ...}) = 0
stat("/var/cpanel/bwlimited/_wildcard_.website.net", 0x7ffc849114b0) = -1 ENOENT (No such file or directory)
stat("/home/website/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0

I don't want Apache to check if this user has exceeded bandwidth usage. It's an additional overhead and bandwidth checks don't make sense on a heavy loaded server with only one account (in my case).

For other users having the same problem: you can comment out the module in the file

/etc/apache2/conf.modules.d/490_mod_bwlimited.conf

...so that it reads:

#LoadModule bwlimited_module modules/mod_bwlimited.so

Then restart Apache via systemctl restart httpd.service

Not sure though if that file will be automatically rebuild after an update, so you may want to add a cronjob looking over it.

Being able to get rid of it all together via EasyApache would be great :)