From my other support ticket, hope it helps you:
OK so there is some sort of issue with the CWP install process for mod_security2.
Workaround is:
- Install modsecurity through CWP GUI so it generates the main config and OWASP rules
- Then reinstall mod_security2 manually to overwrite the issue with mod_security.so:
#Download ModSecurity
wget
https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gzwget
https://www.modsecurity.org/tarball/2.9.1/modsecurity-2.9.1.tar.gz.sha256#Config checksum of download
sha256sum -c modsecurity-2.9.1.tar.gz.sha256
#Install ModSecurity:
tar -xvf modsecurity-2.9.1.tar.gz
cd modsecurity-2.9.1
./configure --with-apxs=/usr/local/apache/bin/apxs
make
sudo make install
cp /usr/local/modsecurity/lib/mod_security2.so /usr/local/apache/modules
Restart Apache, fixed!
If this was helpful let me know, spent a couple of hours getting to the bottom of it in preparation for centos CWP 6 to 7 migration.
Cheers.