Public bug reported: /etc/cron.d/awstats runs the statistics generation cron job with user "www-data". The cron job needs to access /var/log/apache2/access.log.
$ ls -al /var/log/apache2/access.log -rw-r----- 1 root adm 342337 Nov 18 21:36 /var/log/apache2/access.log $ sudo -u www-data cat /var/log/apache2/access.log cat: /var/log/apache2/access.log: Permission denied That is, www-data does not have the permission to access the log file. Therefore, the user in /etc/cron.d/awstats needs to be "root" or -- probably better -- the log files of apache have to be written with permission to be read by www-data. The current default configuration -- also tested with the development version of Ubuntu 14.04 -- does not work. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: awstats (not installed) ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6 Uname: Linux 3.11.0-13-generic x86_64 ApportVersion: 2.12.5-0ubuntu2.1 Architecture: amd64 Date: Mon Nov 18 21:35:19 2013 InstallationDate: Installed on 2013-10-18 (31 days ago) InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016) MarkForUpload: True SourcePackage: awstats UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: awstats (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug saucy -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to awstats in Ubuntu. https://bugs.launchpad.net/bugs/1252467 Title: /etc/cron.d/awstats: wrong user for cron job To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1252467/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs