Virtualmin occurs when checking to verify that the error is present logrotate configuration is not valid:
Error:stat Of/var/log/cron failed:no such file or directory
1. Main reasons
Log file rotation feature restricted
This is due to the syslog daemon not running. Check If the service is running and restart. Your server may have syslogd daemon on rsyslogd depending on Your OS.
2. Solutions
Let's look at the status first.
/etc/init.d/rsyslog status
Appear
RSYSLOGD is stopped
RKLOGD is stopped
Description does not start successfully
And then at the start Rsyslog
/etc/init.d/rsyslog start
The following prompts can be found
Starting system logger: [OK]
Starting kernel logger: [OK]
We're checking to see if Rsyslog starts.
Chkconfig–list | grep rsyslog
Start successful
Rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off
No installation or others are reminded of this.
-list:unknown option
We will set the Rsyslog boot up
Chkconfig Rsyslog on
This is OK, then we click on the check to pass!