modsecurity:installing_mod_security
Differences
This shows you the differences between two versions of the page.
modsecurity:installing_mod_security [2016/10/14 13:30] – created peter | modsecurity: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 | ||
- | </ | ||
- | |||
- | Verify if the mod_security module was loaded. | ||
- | |||
- | <code bash> | ||
- | apachectl -M | grep --color security | ||
- | </ | ||
- | |||
- | You should see a module named **security2_module (shared)** which indicates that the module was loaded. | ||
- | |||
- | Modsecurity' | ||
- | |||
- | <code bash> | ||
- | mv / | ||
- | </ | ||
- | |||
- | Reload Apache | ||
- | |||
- | <code bash> | ||
- | service apache2 reload | ||
- | </ | ||
- | |||
- | You'll find a new log file for mod_security in the Apache log directory: | ||
- | |||
- | <code bash> | ||
- | ls -l / | ||
- | </ | ||
- | |||
- | Returns | ||
- | |||
- | < | ||
- | -rw-r----- 1 root root 0 Oct 19 08:08 / | ||
- | </ | ||
- | |||
modsecurity/installing_mod_security.1476451800.txt.gz · Last modified: 2020/07/15 09:30 (external edit)