• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Log rotation question

TomBoB

Silver Pleskian
Now CentOS 6.5, Plesk 12.0.18#15; previously Plesk 11.5

have/had a few issues with log rotation which I'm now repairing thanks to jtroher suggestion at http://forum.parallels.com/showthread.php?288001-Log-rotation-not-work&highlight=log+rotation

While doing above repair I noticed a small missmatch.
All domains created on Plesk 11.5 have the following usr/local/psa/etc/logrotate.d config file (as long as it wasn't deleted for whatever reason):

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
/var/www/vhosts/system/example.com/logs/*.processed {
size=5242880
rotate 4
compress
missingok
}
/var/www/vhosts/system/example.com/logs/error_log {
size=5242880
rotate 4
compress
missingok
copytruncate
}

whereas domains created new under Plesk12 (and also pre-12 domains that had the logrotate.d config file missing and are being repaired by off/on log files) have the following config file:

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
/var/www/vhosts/system/example.com/logs/*.processed {
size=5242880
rotate 4
compress
missingok
}
/var/www/vhosts/system/example.com/logs/error_log {
size=5242880
rotate 4
compress
missingok
copytruncate
}
/var/www/vhosts/system/example.com/logs/proxy_error_log {
size=5242880
rotate 4
compress
missingok
copytruncate
}

Question is did Plesk during the upgrade from 11.5 to 12 kind of forget to adjust/add the proxy_error_log section to existing logrotate.d config files or may this have been created by changes to Plesk afterwards and is unrelated to the upgrade?

Excuse my lack of in-depth knowledge :)
 
Back
Top