• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

plesk 12.5 log rotate issues

Dave W

Regular Pleskian
Hi all, Plesk 12.5, Centos6.6, plesk was an upgrade.

Error logs not being rotated on some domains.

Logs set to rotate at 100K on Domain template [see attached]

/usr/local/psa/etc/logrotate.d/ doesnt contain config files for all the domains, cant find an error in plesk logs in relation to setting log rotate parameters

I then run the service script manually using

#/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

but the logs dont rotate in
/var/www/vhosts/system/domain.com/logs
 

Attachments

  • EmV2.JPG
    EmV2.JPG
    79.2 KB · Views: 4
Just to add that I just added a log rotate conf file for a missing domain in /usr/local/psa/etc/logrotate.d/ and ran the maintainance script and the logs rotated.

Seems like plesk is failing to write the logrotate script. I can confirm that the settings for the Domain Template are for the domains that are not rotating.
 
We are having the same issue, the logrotate config files in /usr/local/psa/etc/logrotate.d are not created/updated for most of the domains. We see this on fresh installations (CentOS 7 + Plesk 12.5) and also on servers where upgraded Plesk (CentOS 6, Plesk upgrade from 11.5 to 12.5).

We applied a workaround by running a cronjob every evening that updates all domains by doing:
/usr/local/psa/bin/subdomain -u <domain>
 
Back
Top