- Plesk for Linux
Mod Security log is empty.
ModSecurity is not enabled on the server.
- Log in the server via SSH.
- Check the current state of ModSecurity:
# /usr/local/psa/admin/bin/modsecurity_ctl -s
To enable Mod Security use the following command:
# /usr/local/psa/admin/bin/modsecurity_ctl -e
After that operation,
/var/log/modsec_audit.logwill be created in the following directory:
# ls -la /var/log/modsec_audit.log
-rw-r----- 1 root root 865608 Jun 29 09:37 /var/log/modsec_audit.log
Note: if ModSecurity is enabled and
/var/log/modsec_audit.log is empty, it means that no attack/threads are detected.