Setting up AWStats

December 15th, 2006

I recently set up AWStats version 6.5 as a static report generator. So far I’m quite pleased with AWStats, but I ran into some undocumented problems during the setup. Nothing major, but it takes a few extra minutes of debugging.

  • The awstats/tools/logresolvemerge.pl script has DOS-style linebreaks, which causes the shell to look for the interpreter /usr/bin/perl^M . So that linebreak has to be changed.
  • Most of the apache configuration step can be skipped when using static reports. The only part that is required is setting the CustomLog directive to “combined”.
  • The awstats/tools/awstats_buildstaticpages.pl script does not look in /usr/local/awstats when searching for awstats and therefor doesn’t find it. To fix it one has to add it to the Read_Config subroutine at line 136.

The command used to build the static pages is awstats/tools/awstats_buildstaticpages.pl -config=<domain> -update -dir=<destination>

Sorry, comments are closed for this article.