How to Install ConfigServer ModSecurity Control CMC on cPanel/WHM Server

How to Install ConfigServer ModSecurity Control CMC on a cPanel/WHM Server


ConfigServer ModSecurity Control CMC is a plugin developed by ConfigServer Services for cPanel servers to make changes in mod_security from within WHM.

Use this plugin to

1. Completely disable ModSecurity server-wide

2. Globally whitelist ModSecurity rule ID

3. Disable modsecurity rules per cPanel account or per domain basis

4. Check modsecurity log file

5. Make changes in ModSecurity Configuration files

Do the below steps to install ConfigServer ModSecurity Control CMC on cPanel Server.

1. Log into cPanel Server via SSH as ‘root’ user

2. Download ConfigServer ModSecurity Control installation file from website

Download CMC installation file (cmc.tgz) in /usr/local/src directory using wget command.

3. Extract the installation file

‘tar -xzf cmc.tgz’ command will extract the installation file.

4. Execute CMC installation file

cd /usr/local/src
tar -xzf cmc.tgz
cd cmc

[root@server /]# cd /usr/local/src
[root@server src]# wget

[root@server src]# tar -xzf cmc.tgz
[root@server src]# cd cmc
[root@server cmc]# sh
mkdir: cannot create directory ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver’: File exists
‘cmc.cgi’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc.cgi’
mode of ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc.cgi’ changed from 0755 (rwxr-xr-x) to 0700 (rwx——)
‘cmcversion.txt’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/cmcversion.txt’
‘cmc/minus.png’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/minus.png’
‘cmc/plus.png’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/plus.png’
‘cmc.conf’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/cmc.conf’
‘’ -> ‘/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/’
Checking that modsec.conf files are wrapped in :
cmc registered
ConfigServer Mod Security has been installed.


Install ConfigServer Mod Security

Install ConfigServer Mod Security