To disable mod_security2 from cPanel server,
1. Create the following folder.
/usr/local/apache/conf/userdata/std/2/username/domain.com
2. Create a file name disabled_modsec2.conf in the above path.
3. Enter the following line if you want to disable mod_security2 for whole domain.
<IfModule mod_security2.c> SecRuleEngine Off </IfModule>
For specific path,
<LocationMatch your_path> <IfModule mod_security2.c> SecRuleEngine Off </IfModule> </LocationMatch>
4. Run the following script from root access.
/scripts/ensure_vhost_includes –user=username
 Alternatively,
Edit the following file,
/usr/local/apache/conf/modsec2.conf
Enter the information below,
SecRule SERVER_NAME "domain.com" phase:1,nolog,allow,ctl:ruleEngine=off
Replace the domain.com will do.