hi
here some nice howto to get awstats with static html output working under ubuntu
apt-get install awstats libgeo-ipfree-perl libnet-ip-perl
disable the ubuntu cronjob ( comment out everything)
vim /etc/cron.d/awstats
now we setup our /etc/awstats/awstats.domain.tld.conf (cp awstats.conf awstats.domain.tld.conf)
LogFile="/var/log/apache2/domain.tld-access.log" LogFormat=1 SiteDomain="domain.tld" DNSLookup=0 LoadPlugin="graphgooglechartapi" LoadPlugin="geoipfree"
I’ve disabled DNSLookup due to performance issues
create a shell script witch executes awstats
#!/bin/bash DOMS="domain.tld domain1.tld domain2.tld domain3.tld" for DOM in $DOMS do /usr/lib/cgi-bin/awstats.pl -config=$DOM -update -LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/"$DOM"-access.log.1 /var/log/apache2/"$DOM"-access.log |" /usr/share/awstats/tools/awstats_buildstaticpages.pl -update -config=$DOM -dir=/srv/www/vhosts/host1/$DOM/htdocs/awstats -awstatsprog=/usr/lib/cgi-bin/awstats.pl done
Have fun!