1 安装 aptitude install awstats
2 创建目录:mkdir -p /usr/local/awstats/wwwroot/cgi-bin
3 cp -R /usr/share/doc/awstat*/**amples/ /usr/local/awstats/
4 cd /usr/local/awstats; gzip -d awstats.model.conf.gz
5 cp awstats.model.conf wwwroot/cgi-bin
6 cd /usr/local/awstats/wwwroot/cgi-bin; ln -s /usr/lib/cgi-bin/awstats.pl
7 cd /usr/local/awstats; ./awstats_config.pl 回答问题
8 vi /etc/awstats/awstats.domainname.conf
9 /etc/init.d/apache2 restart
10 /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=domainname
11 http://domainname/cgi-bin/awstats.pl?config=domainname
12 vi /etc/cron.daily/awstats,内容如下:
#!/bin/sh
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=domainname
13 图片显示的问题,修改APAche配置文件:Alias /awstatsicons "/usr/share/awstats/icon/"