Some of the virtual servers showed Webalizer reports missing several months of data. I attempted to to generate Webalizer reports and in some cases the reports would fail. I would get message
Running Webalizer to generate report from /var/log/virtualmin/caitech.com_access_log ..
.. Webalizer failed! See the output above for details.
This was not helpful. I researched running Webalizer from the command line and it worked well. Looking into the disparity I realized I was running the command line version as root, and checking the log files in /var/log/virtualmin I first noticed the group was set to apache on all of the files. On page Virtualmin > Logs and Reports > Webalizer Report I changed "Run Webalizer as user" to apache and was able to run a set of reports.
I then looked at the files in /var/log/virtualmin more closely and noticed a very odd collection of owner names. I found one or more instances of the following:
- Owner the name of the account in Virtualmin (as expected)
- Owner the name of an ftp user of the related account (user.account)
- Owner the name of a completely unrelated account (unrelatedaccount)
- Owner the name of a completely unrelated ftp user (unrelateduser.unrelatedaccount)
I'd like to get these fixed. I can chown all the files in the directory, but how did they get this way in the first place and will chown'ing them cause the next log entry to fail on a permissions problem?