Chinaunix

标题: debian sarge上面安装awstats的步骤 [打印本页]

作者: imlinuxer    时间: 2005-04-07 17:02
标题: debian sarge上面安装awstats的步骤
1 安装 aptitude install awstats

2 创建目录:mkdir -p /usr/local/awstats/wwwroot/cgi-bin

3 cp -R /usr/share/doc/awstats/examples/ /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/apache 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 that's all

详见俺的blog:http://linux.bloghome.cn
作者: chinaglwo    时间: 2005-04-22 16:31
标题: debian sarge上面安装awstats的步骤
不错,最近在拿awstats和webalizer比较,前者分析出来的内容很丰富,但后者的分析速度快。

也许我的机器比较破,pII的debian,用webalizer分析300M多的日志只要3分钟,而awstats花了快一个小时。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2