软讯网络 > 操作系统 > Linux > awstats install note
【标 题】:awstats install note
【关键字】:
awstats,install,note
【来 源】:http://blog.chinaunix.net/article.php?articleId=33517&blogId=1502
awstats install note

awstats install note
# cd /usr/local
# tar -zxvf awstats-6.2.tgz
# mv awstats-6.2 awstats
# cd /awstats/tools
# perl awstats_configure.pl
----> /etc/httpd/conf/httpd.conf
----> y
----> sitedomain:127.0.0.1
# mkdir /var/lib/awstats
# chmod 777 /var/lib/awstats
# vi /etc/awstats/awstats.127.0.0.1.conf :
LogFile="/etc/httpd/logs/access_log"
write a cron to system with the command :
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=127.0.0.1
to update the data.
read the report with URL:
http://127.0.0.1/awstats/awstats.pl?config=127.0.0.1
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=203.86.138.90
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
A SIMPLE config file has been created: /etc/awstats/awstats.128.124.10.13.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for '128.124.10.13' with command:
> perl awstats.pl -update -config=127.0.0.1
You can also read your statistics for '128.124.10.13' with URL:
> http://127.0.0.1/awstats/awstats.pl?config=127.0.0.1
LogFile="/etc/httpd/logs/access_log"