Last active
February 28, 2020 16:40
-
-
Save rpfilomeno/1140359f4bd360137a98 to your computer and use it in GitHub Desktop.
ModSecurity Installation + OWASP CRS for Centos 6.5
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
Install yajl2 | |
$cd ~ | |
$git clone https://github.com/lloyd/yajl.git | |
$cd yajl/ | |
$sudo ./configure | |
$sudo make | |
$sudo make install | |
$sudo ln -s /usr/local/lib/libyajl_s.a /usr/lib64/libyajl_s.a | |
$sudo ln -s /usr/local/lib/libyajl.so /usr/lib64/libyajl.so | |
$sudo ln -s /usr/local/lib/libyajl.so.2 /usr/lib64/libyajl.so.2 | |
$sudo ln -s /usr/local/lib/libyajl.so.2.1.1 /usr/lib64/libyajl.so.2.1.1 | |
$sudo ldconfig | |
Download https://github.com/SpiderLabs/ModSecurity/tree/fix_find_yajl | |
$cd ~ | |
$tar -xzf modsecurity-*.tar.gz | |
$cd modsecurity* | |
$autoconf | |
$sudo ./configure --with-yajl="/usr/local/lib /usr/local" | |
$sudo make | |
$sudo make install | |
$sudo cp modsecurity.conf-recommended /etc/httpd/conf.d/modsecurity.conf | |
$sudo cp unicode.mapping /etc/httpd/conf.d/unicode.mapping | |
$cd /etc/httpd/ | |
$sudo git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git | |
$cd /etc/httpd/owasp-modsecurity-crs | |
$sudo cp modsecurity_crs_10_setup.conf.example modsecurity_crs_10_setup.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment