Missing log rotation configuration file


2016-11-16 13:13:58 UTC


2017-08-16 16:20:45 UTC


Was this article helpful?

Have more questions?

Submit a request

Missing log rotation configuration file

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 10.x for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux


Hosting plan has log rotation set up and enabled and the same is true about subscription created on this plan - log rotation is enabled on Websites & Domains > Logs > Log Rotation . However, domain's configuration file is missing from directory /usr/local/psa/etc/logrotate.d and domain logs are not rotated.


This issue is caused by error in product. Parallels Plesk Panel 11.0.9 is affected by the problem.


Enable log rotation for new domains automatically with the help of event handlers :

  1. Create file /root/enable_logrotation.sh with following content:

    sleep 10
    /usr/local/psa/bin/domain -u $1 -log-rotate true
  2. Set executable permission on the file:

    chmod +x /root/enable_logrotation.sh
  3. Create event handler for event "Default domain (the first domain added to a subscription/webspace) created" .

  4. In Command field insert:

    /root/enable_logrotation.sh <new_domain_name>
Have more questions? Submit a request
Please sign in to leave a comment.