"AWStats is a free powerful and featureful tool that generates advanced web, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly."
Here's some quick notes on setting it up with ISPMan in a Debian environment. This script is rougly based on a script from Dave Capella (http://grox.net/software/mine/awstats4vhost/index.php).
apt-get install awstats
Download the cronjob script I created:
cd /usr/local/bin wget http://www.nyetwork.org/ispman/awstatsreporting.sh chmod +x aw*.sh
Add this to /opt/ispman/templates/vhosts.conf.template:
RewriteEngine On RewriteRule /newstats /awstats-cgi-bin/awstats.pl [R] Alias /awstats /usr/share/awstats ScriptAlias /awstats-cgi-bin /usr/lib/cgi-bin
/opt/ispman/bin/ispman.ldap2apache /etc/init.d/apache restart
Download the headless template from http://grox.net/software/mine/awstats4vhost/awstats4vhost.tgz and place it in /etc/awstats.
Finally, run the awstatsreporting.sh script manually to see it complete, then create a cronjob to run it regularly.
To process already rotated/compressed logfiles, edit the script so that the config file looks at /ispman/logs/vhost.access*. This only needs to be the first time, and may or will take a long time to complete.
One advantage of my script over Capella's is that the CGI, icons, etc for AWStats aren't copied all over the place - each virtual hosts shares the same ones.
Linked to from