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.
Due to abusive users, many Internet Service Providers (ISPs) block SMTP port 25. So you may want to set up another port on your web server instead of the default 25.
SMTP is the acronym for Simple Mail Transfer Protocol, a protocol used to send emails. More info on the Wikipedia page.
We will show you here two ways on how to add another SMTP port in WHM.
1.Log into WHM as root
2. Navigate to Service Configuration >> Service Manager
3.Look for Exim Mail Server (on another port) option. Check the two checkboxes – cPanel will enable and monitor this service. Add the desired port(s) in the right field. The notice states: Useful for providers that block port 25 (multiple comma-delimited ports may be added).
4. Scroll to the bottom of the page and click the Save button.
1.Log into WHM as root
2. Navigate to Service Configuration >> Exim Configuration Manager
3. The Exim configuration page will open. Click on the Advanced Editor top tab.
4.Look for daemon_smtp_ports option and add your desired port(s). cPanel notice for this option: This option specifies one or more default SMTP ports on which the Exim daemon listens.
5. Scroll to the bottom of the page and click the Save button.
Instead of adding another SMTP port you can instruct users to use Secure SMTP ports – 465 or 587. Usually these ports are not blocked by IPSs.
Don’t forget to add the new port(s) to the allowed ports in your firewall’s configuration.
This KB article is intended for CentOS with cPanel servers.
You are selling shared hosting accounts and you want to be sure that your users don’t exceed their disk space quotas? You can easily find if the disk quotas work as expected.
Mainly, as root, you will create a big file size (that added to a user account will exceed (s)he’s quota) and attempt to assign it to a user. Steps:
Log in to the server as root
Navigate to a user’s home directory (in this example the user is plothost) and create a file of 100M (or 1000M etc). In our test case the plothost‘s plan has 50M space – so, if everything works as expected, we will not be able to add a 100M file.
root@web [~]# cd /home/plothost/
root@web [/home/plothost]# dd if=/dev/zero of=test_file bs=100M count=1
1+0 records in
1+0 records out
104857600 bytes (105 MB) copied, 0.527468 s, 399 MB/s