Article ID: 116474, created on Jul 17, 2013, last review on May 9, 2014

  • Applies to:
  • Plesk 11.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/ 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/
  3. Create event handler for event "Default domain (the first domain added to a subscription/webspace) created".

  4. In Command field insert:

    /root/ <new_domain_name>

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c aea4cd7bfd353ad7a1341a257ad4724a 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF