In the latest versions of cPanel, you have the ability to disable/enable ModSecurity from your cPanel account.
Notice that you may not have this option enabled in cPanel. Ask your host.
ModSecurity, sometimes called Modsec, is a popular Open-source Web application firewall (WAF). Originally designed as a module for the Apache HTTP Server, it has evolved to provide an array of Hypertext Transfer Protocol request and response filtering capabilities along with other security features across a number of different platforms including Apache HTTP Server, Microsoft IIS and NGINX. It is a free software released under the Apache license 2.0.
Navigate to Security section, look for ModSecurity option
Here you can Disable/Enable ModSecurity for all domains.
Or, you can choose an individual domain on which to disable/enable ModSecurity. Click the On/Off button.
When you disable ModSecurity, a notice will be shown:
Warning: ModSecurity is disabled for one or more of your domains. Only disable ModSecurity while you troubleshoot a problem with your configuration. Without ModSecurity enabled, your domains lose the extra layer of protection that the module provides.
Check our video on this:
If you have any questions, please comment below. We answer to all comments.
cPanel doesn’t offer an explicit option to limit the bandwidth usage for a subdomain.
Anyway, you can use a workaround for this situation. You(or your host) can create a separate cPanel account for the subdomain. Having a cPanel account for the subdomain will allow you to set a bandwidth usage limit for it. Like 20000MB, 2000GB etc. (Yes, it’s possible to create cPanel accounts for subdomains.)
If you are processing all requests via a single script, you can limit the bandwidth usage based on site visits. This will not be very accurate.
Some users asked us if it’s possible to change the default 2082/2083 cPanel port on their servers. If you are searching the internet you will see many web pages/articles that recommend you to:
Log into your server via SSH as root
Edit the file /var/cpanel/cpanel.config in your preferred text editor.
Search the line port=2082
and replace 2082 with the desired port.
Restart the cPanel service with service cpanel restart
Notice that this method doesn’t work anymore. As of writing this article – June 2017 – there is no way to change the default cPanel (and WHM) ports!
Trying to manually add the line port=xxxx line in /var/cpanel/cpanel.config will result in warnings in cPanel log file /usr/local/cpanel/logs/error_log:
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] One or more key settings for "webcp.plothost.com" were either not found in cPanel & WHM’s server configuration file (/var/cpanel/cpanel.config), or were present but did not pass validation.
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] The following settings are obsolete and have been removed from the server configuration file:
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] port
[2017-06-26 15:56:20 -0400] warn [restartsrv_cpsrvd] Read the cpanel.config file documentation (https://go.cpanel.net/cpconfig) for important information about this file.