Article ID: 118799, created on Nov 21, 2013, last review on Jun 23, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


Log rotation for a domain is setup to rotate logs by size, but error_log file occupies too much space and not being rotated upon reaching the configured size.


Log rotation is performed by the Daily Maintenance script. This task will rotate a log file in case if its size is equal or larger than configured. So if the size of log file exceeds a particular limit, but the Daily Maintenance is not started yet then log file will not be rotated (until Daily Maintenance has started).


Configure a cron task to rotate logs for affected domain individually:

  1. Editing crontab:

    crontab -e
  2. Create a crontask with similar content:

    01      01,05,10,15,20  *       *       *       /usr/local/psa/logrotate/sbin/logrotate /usr/local/psa/etc/logrotate.d/ -s /usr/local/psa/var/logrotate.status

    After that log rotation will be performed 5 times a day for the domain ''.

Search Words

Logrotation does not work properly

not rotated


disk usage

logs are not rotated

log rotation


log rotation by size does not work

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 742559b1631652fadd74764ae8be475e e335d9adf7edffca6a8af8039031a4c7 2a5151f57629129e26ff206d171fbb5f

Email subscription for changes to this article
Save as PDF