- Plesk Onyx 17.5 for Linux
Server sends a message to the administrator with the following content every day:
CONFIG_TEXT: Cron root@server test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
No rotated logs for '/var/log/apache2/access.log' found.
Note: The path may differ based on what OS is used on the server.
Anonymize IP addresses during log rotation is enabled in Tools & Settings > Server Settings
There are no rotated files related to this log file (with the extension
# stat /var/log/apache2/access.log.1
/usr/bin/stat: cannot stat '/var/log/apache2/access.log.1': No such file or directory
Plesk IP anonymization utility reports that there are no logs to anonymize. It is Plesk bug #PPPM-8959 which is planned to be fixed in future product updates.
Since server-wide Apache access log is not used by Plesk Apache configuration, it might never rotate. Therefore, to disable these notifications, the following workarounds can be applied:
- Connect to the server via SSH
Create an empty pseudo-rotated log file
# touch /var/log/apache2/access.log.1
Note: Use the path from the email message and add an .1 suffix to it
Assign the correct permissions to it:
# chown root:adm /var/log/apache2/access.log.1
2>/dev/null to the end of the
anonymize_ip string to suppress its output, so the whole strings will look as follow:
CONFIG_TEXT: /usr/local/psa/admin/sbin/anonymize_ip --find-rotated-logs $* 2>/dev/null