[Pkg-awstats-devel] Bug#294586: awstats: Wrong logfile path, no permission to read logfile

Uwe Storbeck uwe at ibr.ch
Thu Jan 14 15:35:04 UTC 2010


On Apr 10, Sergey B Kirpichev wrote:

> Anyway, overall configuration stuff & cron job menagement should be
> improved (bugs #415334,#224506).

I just run into this problem again. After an upgrade from apache
to apache2 awstats was failing silently because of the tests in
the awstats cron file:

/etc/cron.d/awstats:
0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null

I think testing for the readability of the webserver logfile in
the awstat cronjob is not a good idea. The logfile path is
redundant in 2 places (cron and config file) and more important
it makes awstat fail silently even when you have set all options
properly in the config file.

Removing the test from the cron file would fix both issues.

Regards

Uwe






More information about the Pkg-awstats-devel mailing list