• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Log rotate broken in quite a few different ways.

janjoh

New Pleskian
Yeah, I've read through the other threads but feel that this does not quite match up.

I'm running
OS Ubuntu 12.04.3 LTS
Panel version 11.5.30 Update #28, last updated at Dec 26, 2013 06:56 AM

A customer called in and wondered what was using so much space in his account. Turns out that it was a 4.7GB error.log file that had not been rotated once since the customer was created.

So, i took a look in the logrotate conf for the user.

Code:
#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/framsidan.org/logs/*.processed {
        weekly
        rotate  10
        compress
        missingok
}
/var/www/vhosts/system/framsidan.org/logs/error_log {
        weekly
        rotate  10
        compress
        missingok
        copytruncate
}
/usr/local/psa/etc/logrotate.d/framsidan.org (END)

Thats the first funny thing, because when i look in plesk, the log rotate settings are set to "daily" and "keep 90".
I tried changing the calues in the control panel, but the conf-file does not get changed.

I then found a thread which suggested
Code:
 /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf

Which generates
Code:
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log
reading config file admintools.procyon.se
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/error_log
reading config file beta.framsidan.org
reading config info for /var/www/vhosts/system/framsidan.org/logs/*.processed
reading config info for /var/www/vhosts/system/framsidan.org/logs/error_log

[Many more "Processed" removed for various domains due to posting size limits]

reading config info for /var/lib/tomcat6/logs/*.log
reading config info for /var/lib/tomcat6/logs/catalina.out
reading config file tribagoth.se
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/error_log
reading config file tribalbellydance.se
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/error_log
reading config file webware.se
reading config info for /var/www/vhosts/webware.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/webware.se/statistics/logs/error_log
reading config file xn--hundhjlpen-v5a.se
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/error_log
reading config info for /opt/psa/var/log/xferlog.processed
reading config info for /opt/psa/var/log/maillog.processed
reading config info for /opt/psa/var/log/psi.log
reading config info for /opt/psa/var/log/ftp_tls.log
reading config info for /opt/psa/admin/logs/*_log.processed
reading config info for /opt/psa/var/webalizer.cache
reading config info for /var/log/sw-cp-server/error_log
reading config info for /opt/psa/admin/logs/panel.log
reading config info for /opt/psa/admin/logs/health-alarm.log
reading config file /usr/local/psa/logrotate/sbin/logrotate
error: /usr/local/psa/logrotate/sbin/logrotate:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:3 unknown option 'T' -- ignoring line
error: /usr/local/psa/logrotate/sbin/logrotate:3 unexpected text
error: /usr/local/psa/logrotate/sbin/logrotate:4 lines must begin with a keyword or a filename (possibly in double quotes)
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
error: Krok-o-dil-fastighetsservice.skyddsrummet.net:5 duplicate log entry for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
root@gallifrey:~#

Another thing that seem strange (but may be in order?) is that the only cron-job that apears to be firing is backupmgr
Code:
root@gallifrey:~# grep -ir psa /var/log/syslog |grep -ir cron
Jan  8 07:05:01 gallifrey CRON[13313]: (root) CMD ([ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1)
[many lines removed due to posting limits]


Now, to me it would seem that more cron jobs should be needed? I mean, the auto-update of PLESK is working.

At the same time, some rotate seem to work, as i have

Code:
root@gallifrey:/opt/psa/var/log# ls -la
total 3156
drwxr-xr-x  2 root   root     4096 Jan  8 18:54 .
drwxr-xr-x 12 psaadm psaadm   4096 Dec 26 06:56 ..
-rw-------  1 root   root      248 Jan  8 18:57 ftp_tls.log
-rw-------  1 root   root    90789 Jan  8 18:29 ftp_tls.log.1.gz
-rw-r-----  1 syslog adm     32864 Jan  8 19:18 maillog
-rw-r-----  1 root   root   861153 Jan  8 18:33 maillog.processed.1.gz
-rw-r--r--  1 root   root   940891 Jan  5 06:39 maillog.processed.2.gz
-rw-r--r--  1 root   root   962163 Jan  1 06:37 maillog.processed.3.gz
-rw-r-----  1 root   root    25856 Jan  8 18:33 mail_traffic_pendings.dat
-rw-r--r--  1 root   root        0 Jan  8 18:33 smtp_pendings.log
-rw-r-----  1 root   root     3551 Jan  8 19:00 xferlog
-rw-r-----  1 root   root   281621 Jan  8 18:32 xferlog.processed.1.gz
root@gallifrey:/opt/psa/var/log#

What the deuce is going on here?
 
I then found a thread which suggested
Code:
 /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf

Which generates
Code:
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log
reading config file admintools.procyon.se
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/error_log
reading config file beta.framsidan.org
reading config info for /var/www/vhosts/system/framsidan.org/logs/*.processed
reading config info for /var/www/vhosts/system/framsidan.org/logs/error_log

[Many more "Processed" removed for various domains due to posting size limits]

reading config info for /var/lib/tomcat6/logs/*.log
reading config info for /var/lib/tomcat6/logs/catalina.out
reading config file tribagoth.se
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/error_log
reading config file tribalbellydance.se
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/error_log
reading config file webware.se
reading config info for /var/www/vhosts/webware.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/webware.se/statistics/logs/error_log
reading config file xn--hundhjlpen-v5a.se
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/error_log
reading config info for /opt/psa/var/log/xferlog.processed
reading config info for /opt/psa/var/log/maillog.processed
reading config info for /opt/psa/var/log/psi.log
reading config info for /opt/psa/var/log/ftp_tls.log
reading config info for /opt/psa/admin/logs/*_log.processed
reading config info for /opt/psa/var/webalizer.cache
reading config info for /var/log/sw-cp-server/error_log
reading config info for /opt/psa/admin/logs/panel.log
reading config info for /opt/psa/admin/logs/health-alarm.log
reading config file /usr/local/psa/logrotate/sbin/logrotate
error: /usr/local/psa/logrotate/sbin/logrotate:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:3 unknown option 'T' -- ignoring line
error: /usr/local/psa/logrotate/sbin/logrotate:3 unexpected text
error: /usr/local/psa/logrotate/sbin/logrotate:4 lines must begin with a keyword or a filename (possibly in double quotes)
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
error: Krok-o-dil-fastighetsservice.skyddsrummet.net:5 duplicate log entry for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
root@gallifrey:~#

Not sure why you use double command "/usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf" here.
 
Not sure why you use double command "/usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf" here.

Found it via google.

What would be the "Proper" way to do this, and why is not my Plesk handling it? And why is not the control panel settings for rotation reflected in the logrotate conf for the domains?
 
Have you tried to find any errors in output of correct command

# /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf

?
 
Have you tried to find any errors in output of correct command

# /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf

?

That appears to run clean

Code:
root@gallifrey:/opt/psa/var/log# /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log

[a lot of the above for all domains]

reading config info for /opt/psa/var/log/xferlog.processed
reading config info for /opt/psa/var/log/maillog.processed
reading config info for /opt/psa/var/log/psi.log
reading config info for /opt/psa/var/log/ftp_tls.log
reading config info for /opt/psa/admin/logs/*_log.processed
reading config info for /opt/psa/var/webalizer.cache
reading config info for /var/log/sw-cp-server/error_log
reading config info for /opt/psa/admin/logs/panel.log
reading config info for /opt/psa/admin/logs/health-alarm.log

Handling 79 logs

rotating pattern: /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed  5242880 bytes (no old logs will be kept)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/access_log.processed
  log does not need rotating
considering log /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/access_ssl_log.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log  5242880 bytes (no old logs will be kept)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log
  log does not need rotating

rotating pattern: /var/www/vhosts/admintools.procyon.se/statistics/logs/*.processed  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/admintools.procyon.se/statistics/logs/access_log.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/admintools.procyon.se/statistics/logs/error_log  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/admintools.procyon.se/statistics/logs/error_log
  log does not need rotating


[Alot of the above removed due to posting constraints]

rotating pattern: /var/www/vhosts/mbirath.se/statistics/logs/*.processed  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/mbirath.se/statistics/logs/access_log.processed
  log does not need rotating
considering log /var/www/vhosts/mbirath.se/statistics/logs/xferlog_regular.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/mbirath.se/statistics/logs/error_log  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/mbirath.se/statistics/logs/error_log
  log does not need rotating

rotating pattern: /var/www/vhosts/moorhouse.se/statistics/logs/*.processed  weekly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/moorhouse.se/statistics/logs/access_log.processed
  log does not need rotating
considering log /var/www/vhosts/moorhouse.se/statistics/logs/xferlog_regular.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/moorhouse.se/statistics/logs/error_log  weekly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/moorhouse.se/statistics/logs/error_log
  log does not need rotating

rotating pattern: /var/www/vhosts/system/pettalk.info/logs/*.processed  10485760 bytes (10 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/system/pettalk.info/logs/access_log.processed
  log does not need rotating
considering log /var/www/vhosts/system/pettalk.info/logs/access_ssl_log.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/system/pettalk.info/logs/error_log  10485760 bytes (10 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/system/pettalk.info/logs/error_log
  log does not need rotating

[More of above removed]

rotating pattern: /var/lib/tomcat6/logs/*.log  weekly (52 rotations)
empty log files are rotated, old logs are removed
considering log /var/lib/tomcat6/logs/catalina.2012-08-30.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2012-08-31.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2012-09-01.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2012-09-21.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-01-21.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-02-02.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-04-02.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-04-17.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-06-08.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-07-30.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-09-10.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-10-05.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-11-08.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/catalina.2013-11-25.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2012-08-30.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2012-08-31.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2012-09-01.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2012-09-21.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-01-21.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-02-02.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-04-02.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-04-17.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-06-08.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-07-30.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-09-10.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-10-05.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-11-08.log
  log does not need rotating
considering log /var/lib/tomcat6/logs/localhost.2013-11-25.log
  log does not need rotating

rotating pattern: /var/lib/tomcat6/logs/catalina.out  weekly (52 rotations)
empty log files are not rotated, old logs are removed
considering log /var/lib/tomcat6/logs/catalina.out
  log does not need rotating

rotating pattern: /var/www/vhosts/tribagoth.se/statistics/logs/*.processed  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/tribagoth.se/statistics/logs/access_log.processed
  log does not need rotating
considering log /var/www/vhosts/tribagoth.se/statistics/logs/xferlog_regular.processed
  log does not need rotating

rotating pattern: /var/www/vhosts/tribagoth.se/statistics/logs/error_log  2073741824 bytes (1 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/tribagoth.se/statistics/logs/error_log
  log does not need rotating

rotating pattern: /var/www/vhosts/tribalbellydance.se/statistics/logs/*.processed  weekly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/www/vhosts/tribalbellydance.se/statistics/logs/access_log.processed
  log does not need rotating

[More of above removed due to posting constraints]

root@gallifrey:/opt/psa/var/log#
 
Have you tried to find any errors in output of correct command

# /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf

?


My more verbose answer got held for approval (since i included a lot of output).

But the geist of that was: That appears to run clean, and actually rotate the logs.

So, i guess that leaves me with two questions.

1. What might cause this to not run automatically for 10 months?
2. Why is not the "log rotate" settings in the control panel mirrored into the actuall config files for logrotate?
 
Are you sure that cron service is up and running on your server? Logrotation is a part of DailyMantenance script which runs through /etc/cron.daily/50plesk-daily

You can try to debug it with

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

Check output for possible errors and check size of logs after that.
More detailed investigation for answering on your questions can be performed by support team with direct access on your server.
 
Are you sure that cron service is up and running on your server? Logrotation is a part of DailyMantenance script which runs through /etc/cron.daily/50plesk-daily

If you take a look at my original post i mention a few things there.

1. Cron is running
2. The ONLY plesk related activity i see there is backupmanager
3. Also, i have a few custom cron entries which fires just nicely.

The cron entry for 50plesk-daily is present in my config.

And still: What process should transfer the log rotation settings from the control panel into the actual log rotate files?
 
You can try to debug it with

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

Check output for possible errors and check size of logs after that.
More detailed investigation for answering on your questions can be performed by support team with direct access on your server.

root@gallifrey:/opt/psa/var/log# export PLESK_DEBUG_LEVEL=4
root@gallifrey:/opt/psa/var/log# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php
2014-01-09T09:44:13+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...rCRM/6.5.2-3/updates.atom?packager=SofCloudIT
2014-01-09T09:44:14+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...rCRM/6.5.2-3/updates.atom?packager=SofCloudIT
2014-01-09T09:44:30+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...ice 365/2.5-5/updates.atom?packager=Parallels
2014-01-09T09:44:30+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...ice 365/2.5-5/updates.atom?packager=Parallels
2014-01-09T09:44:41+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...ge.net/phpBook/1.50-35/updates.atom?packager=
2014-01-09T09:44:42+01:00 ERR (3) [apscatalog]: Error: Unable to get updates for package: Resource not found: http://catalog.marketplace.parallel...ge.net/phpBook/1.50-35/updates.atom?packager=
root@gallifrey:/opt/psa/var/log#
 
And what about size of logs after that?
2. Why is not the "log rotate" settings in the control panel mirrored into the actuall config files for logrotate?
Are you sure? Have you checked it in corresponding con files in /usr/local/psa/etc/logrotate.d/ ?
 
And what about size of logs after that?

Are you sure? Have you checked it in corresponding con files in /usr/local/psa/etc/logrotate.d/ ?

-rw-r--r-- 1 root root 350 Nov 27 07:11 framsidan.info
-rw-r--r-- 1 root root 358 Jan 8 18:40 framsidan.org
-rw-r--r-- 1 root root 364 Sep 11 2012 hedemora.net

#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/framsidan.org/logs/*.processed {
weekly
rotate 10
compress
missingok
}
/var/www/vhosts/system/framsidan.org/logs/error_log {
weekly
rotate 10
compress
missingok
copytruncate
}
/usr/local/psa/etc/logrotate.d/framsidan.org (END)

Capture.JPG
 
And? Click OK button and check content of config with

# cat /usr/local/psa/etc/logrotate.d/framsidan.org

I have checked it on test server and all works fine. All settings changes are reflected correctly to config.
 
And? Click OK button and check content of config with

# cat /usr/local/psa/etc/logrotate.d/framsidan.org

I have checked it on test server and all works fine. All settings changes are reflected correctly to config.

Again, I covered that in my original post:
"I tried changing the calues in the control panel, but the conf-file does not get changed."
 
Back
Top