- Plesk Onyx 17.5 for Linux
- Plesk Onyx 17.8 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
- #PPPM-8959 "When the “Anonymize IP addresses during log rotation and collecting of web statistics” option is enabled, the administrator no longer receives daily error notifications if no logs for rotation exist."
- Plesk Obsidian (RC1 18.0.15 as #PPP-37612) 04 June 2019 (Linux)
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