Last active
September 23, 2015 00:28
-
-
Save mafiuss/e14a50f3d68c0c73576d to your computer and use it in GitHub Desktop.
modsecurity installation in Debian 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as root run | |
apt-get update | |
apt-get install libxm | |
apt-get install libxml2 | |
apt-get install libxml2-dev libxml2-utils | |
apt-get install libaprutil1 libaprutil1-dev | |
# if no apache 2 present install | |
# apt-get install apache2 | |
apt-get install libapache-mod-security | |
a2enmod headers | |
service apache2 restart | |
# edit config files | |
vim /etc/apache2/mods-enabled/mod-security.conf | |
ln -s /usr/share/modsecurity-crs/modsecurity_crs_10_setup.conf /etc/modsecurity/modsecurity_crs_10_setup.conf | |
vim /etc/modsecurity/modsecurity_crs_10_setup.conf | |
cd /usr/share/modsecurity-crs/base_rules/ | |
for f in * ; do ln -s /usr/share/modsecurity-crs/base_rules/$f /etc/modsecurity/$f ; done | |
cd /usr/share/modsecurity-crs/optional_rules/ | |
for f in * ; do ln -s /usr/share/modsecurity-crs/optional_rules/$f /etc/modsecurity/$f ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment