I’m using the latest version of the CWAF installer, and when I run it on a CentOS7/Apache/Interworx server to try to do a standalone installation, I get the error message that ModSecurity cannot be found:
cat /tmp/cwaf_install.log.17906
20-07-2020 17:34:55 Starting the installation
20-07-2020 17:35:20 ----------------Checking Apache-----------------------
20-07-2020 17:35:20 Found APACHE2CTL ‘/usr/sbin/apachectl’
20-07-2020 17:35:20 Found APACHE version 2.4.41
20-07-2020 17:35:20 Failed to aquire MODSECURITY version
20-07-2020 17:35:23 ---------------Checking LiteSpeed---------------------
20-07-2020 17:35:23 LiteSpeed binary /usr/local/lsws/bin/lshttpd not found!
20-07-2020 17:35:31 -----------------Checking Nginx-----------------------
20-07-2020 17:35:31 Nginx binary /usr/local/nginx/sbin/nginx not found!
20-07-2020 17:35:34 ------------------------------------------------------
ModSecurity is definitely installed and running. If I look in the ModSecurity audit log, I can see my custom rule is working.
The odd thing is that I ran the installer successfully yesterday. I made the apparent mistake of uninstalling CWAF to move it to another folder.
I saw this five-year-old thread, but the fix it describes (killing orphaned httpd processes) didn’t work for me.
How do I get the Client Agent installer to realize that ModSecurity is installed so I can complete the installation?
Thanks!