- 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
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 :
/root/enable_logrotation.shwith following content:
/usr/local/psa/bin/domain -u $1 -log-rotate true
Set executable permission on the file:
chmod +x /root/enable_logrotation.sh
Create event handler for event "Default domain (the first domain added to a subscription/webspace) created" .
In Command field insert: