Error in log rotation
In the /usr/local/ispconfig/server/cron_daily.php is are 2 errors in the log rotation (as far as I understand).
First, the command to compress the log file creates a new compressed file, but doesn't delete the uncompressed one. As far as I can see it doesn't get deleted at all. So my first recommendation would be, to change line 117 from
exec("gzip -c $logfile > $logfile.gz");
to
exec("gzip $logfile.gz");
so that the uncompressed file disappears.
Second, the compessed file will be deleted immediatly after it was created since there is a bug in line 122 that will delete the yesterdays log file instead of the one that is one month old. So you need to change
logfile = escapeshellcmd(
rec["document_root"].'/log/'.$yesterday.'-access.log.gz');
to
logfile = escapeshellcmd(
rec["document_root"].'/log/'.$month_ago.'-access.log.gz');
Kind regards,
Alex.