I am running 2 virtualmin servers, a Debian 7 and an Ubuntu 12.04. Virtualmin and Webmin are pretty stock, no big changes. Both have a problem where the root user gets every an email every 5 minutes.
The mail is sent from root@hostname Cron Deamon.
The contents are:
Error while processing /etc/awstats/awstats.DOMAIN.TLD.conf
Create/Update database for config “/etc/awstats/awstats.DOMAIN.TLD.conf” by
AWStats version 7.0 (build 1.971)
From data in log file “/var/log/virtualmin/DOMAIN.TLD_access_log”…
Phase 1 : First bypass old records, searching new record…
Direct access after last parsed record (after line 9363)
Error: Couldn’t open file “/home/DOMAIN/awstats/awstats112013.DOMAIN.TLD.tmp.16397”
for write: Permission denied
Setup (’/etc/awstats/awstats.DOMAIN.TLD.conf’ file, web server or permissions)
may be wrong.
Check config file, permissions and AWStats documentation (in ‘docs’ directory).
This repeats for all domains… I replaced the original domainname with DOMAIN.TLD in this example.
AWstats seem to work properly.
Can I stop the flooding?
And more important: What is wrong?
Thank you for your reply. I will put this behind the cronjobs.
I run every site in Fcgid mode, so my http user is running as domainowner. I think, if this is the one you mean?
Strange that this is wrong by default on both virtualmin servers. If I can fix the underlying problem, it would be even better I guess!
I found this line (added by Virtualmin/Webmin) in the scheduled cron jobs:
‘www-data Yes [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh’
When I disabled the line, the log flood stops. Awstats keeps running fine. (I think because I also have the lines like ’ root Yes /etc/webmin/virtualmin-awstats/awstats.pl DOMAIN.TLD’ which work properly and generate the stats).