User Tools

Site Tools


modsecurity:installing_mod_security

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modsecurity:installing_mod_security [2016/10/14 13:30] – created petermodsecurity:installing_mod_security [2019/11/30 14:18] (current) – removed peter
Line 1: Line 1:
-====== ModSecurity - Installing mod_security ====== 
- 
-Install modsecurity. 
- 
-<code bash> 
-apt-get install libapache2-modsecurity 
-</code> 
- 
-Verify if the mod_security module was loaded. 
- 
-<code bash> 
-apachectl -M | grep --color security 
-</code> 
- 
-You should see a module named **security2_module (shared)** which indicates that the module was loaded. 
- 
-Modsecurity's installation includes a recommended configuration file which has to be renamed: 
- 
-<code bash> 
-mv /etc/modsecurity/modsecurity.conf{-recommended,} 
-</code> 
- 
-Reload Apache 
- 
-<code bash> 
-service apache2 reload 
-</code> 
- 
-You'll find a new log file for mod_security in the Apache log directory: 
- 
-<code bash> 
-ls -l /var/log/apache2/modsec_audit.log 
-</code> 
- 
-Returns 
- 
-<code> 
--rw-r----- 1 root root 0 Oct 19 08:08 /var/log/apache2/modsec_audit.log 
-</code> 
- 
  
modsecurity/installing_mod_security.1476451800.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki