Installing mod_security on cPanel servers

Expertise level: Medium 

Mod_security is an Apache module that provides intrusions detection and prevention for web applications. It aims at shielding web applications from known and unknown attacks, such as SQL injection attacks, cross-site scripting, path traversal attacks, etc.

To install mod_security on a cPanel server, follow the steps given below:

  1. Follow the steps given in the article "How can I compile Apache and PHP from WHM?".
  2. While selecting modules in the "Short Options List", select "Mod Security".
  3. Recompile Apache (As per the article "How can I compile Apache and PHP from WHM?").

Please refer to the screen captures:



Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk