• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

After mod security logrotate new log is empty

josie3333

New Pleskian
Plesk 12 on Centos 6.5

I added the following to my /etc/logrotate.conf

/var/log/modsec_audit.log {
missingok
daily
rotate 4
compress
}

I'm not exactly sure if the above is the correct syntax, but the result was that two days later my current modsec_audit.log was Gzipped and a new modsec_audit.log was created.
The problem is that nothing was logged to this new file.

From the Plesk 12 control panel I turned off mod security and then turned it back on again and hey presto, the new logfile started to log events.

This leaves the problem of why nothing was recorded when the file was created.

Can anyone advise
 
Last edited:
You can try restarting apache

service httpd restart

Don't worry I'm having lots of issues with the mod security myself. Trying to test and ensure it is actually working and keeping it from logging TOO many events
 
Depending on your system, please add this lines to your logrotate definition for mod_security:

Code:
...
    postrotate
       /etc/init.d/apache2 reload > /dev/null 2>&1 || true
    endscript

Please adjust the reload - command to YOUR needs on your system, because some operating systems have different names for the apache2 and it's init - scripts.
 
Back
Top