"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 (

Install awstats:

apt-get install awstats

Download the cronjob script I created:

cd /usr/local/bin
chmod +x aw*.sh

Add this to /opt/ispman/templates/vhosts.conf.template:

RewriteEngine On
RewriteRule /newstats /awstats-cgi-bin/ [R]
Alias /awstats /usr/share/awstats
ScriptAlias /awstats-cgi-bin /usr/lib/cgi-bin

Regenerate vhosts.conf:

/etc/init.d/apache restart

Download the headless template from and place it in /etc/awstats.

Finally, run the 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

See also ISPMan, Apache, WebStats