Install modsecurity


SUBMITTED BY: HamadaBader

DATE: Aug. 13, 2017, 12:12 a.m.

UPDATED: Aug. 13, 2017, 12:15 a.m.

FORMAT: Text only

SIZE: 503 Bytes

HITS: 12309

  1. Installing mod_security
  2. Modsecurity is available in the Debian/Ubuntu repository:
  3. apt-get install libapache2-modsecurity
  4. Verify if the mod_security module was loaded.
  5. apachectl -M | grep --color security
  6. You should see a module named security2_module (shared) which indicates that the module was loaded.
  7. Modsecurity's installation includes a recommended configuration file which has to be renamed:
  8. mv /etc/modsecurity/modsecurity.conf{-recommended,}
  9. Reload Apache
  10. service apache2 reload

comments powered by Disqus