Article ID: 118933, created on Nov 29, 2013, last review on Jun 17, 2016

  • Applies to:
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


Logs are not being rotated for several days for some subscription\domain.

Configuration files for logrotate are missing from '/usr/local/psa/etc/logrotate.d', however they are present for new domains so KB#116474 doesn't help.


Logrotate config is missing after upgrade from the version that was affected by issue described in KB#116474, or config files were removed manually.


The following script could be used in order to fix the issue for all the domains at once:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ne"select from domains d join dom_param dp on join log_rotation lr on where dp.param='logrotation_id' and lr.turned_on='true';"|while read d;do /usr/local/psa/bin/domain -u $d -log-rotate true;done

This will recreate configuration files for logrotate for all domains that have rotation configured.

Related articles

KB#118799: log rotation by size is enabled, however log file sizes are far bigger then configured.

Search Words


plesk log rotation

log rotate


service_plan logrotate

log rotation

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a

Email subscription for changes to this article
Save as PDF