awstats install note

发表于:2007-05-26来源:作者:点击数: 标签:
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 /
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/aclearcase/" target="_blank" >ccess_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"

原文转自:http://www.ltesting.net