| Awstats and Debian Lenny |
|
Configuration of Awstats in Debian Lenny (5.0.1) requires additional changes for updates via a cronjob. Once you have installed awstats using: apt-get install awstats You need to create configurations in /etc/awstats of the form: awstats.example.com.conf Then check the cron file in /etc/cron.d/awstats This file sets cronjobs to check in /var/log/apache/ for the logfiles. If you are running apache2, this should be /var/log/apache2/. Also, the file configures the cronjobs to run as the www-data user. This user does not have read access to the /var/log/apache2/ directory. The simplest way to do this is to add the www-data user to the 'adm' group. Then you should be able to view the stats at: http://localhost/cgi-bin/awstats.pl?config=example.com The icon files may not be displayed, in this case, you need to add this to your Apache configuration: Alias /awstats-icon/ /usr/share/awstats/icon/ |