It seems that AWStats is without a doubt the best stats package out there these days. And you can get it easily enough on debian with apt-get. But it still requires a bit of configuration. Here’s what I’ve done so far.
First I have a number of virtual hosts so that I made a copy of
/etc/awstats/awstats.semacode.org.conf which is the blessed name for each virtual host. In that new conf file you need to have:<ul><li>
LogFormat = 1 - this is important because Sarge comes with apache configured to the
combined setting at least in my recently-made fresh install. </li><li>
Now, apt-get will already have installed a cron job for you, but you need to make sure it’s working because it won’t complain if it’s broke. So do this:
sudo /usr/lib/cgi-bin/awstats.pl -config=semacode.org and it will complain if there’s anything wrong.
Finally you will need to add the following line to your httpd.conf file:
Alias /awstats-icon "/usr/share/awstats/icon/" .
I also am going to add password protection to my awstats page so that the general public can’t access it. Partly because it could be a security concern, but mainly because it’s slooooow.