My FAQ,最新最全的IT技术FAQ
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 未整理篇 | 技术讨论
  当前位置: > 操作系统 > Unix高级技术
awstats install note
作者:未知 时间:2005-09-13 23:53 出处:Blog.ChinaUnix.net 责编:My FAQ
              摘要: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"
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 myfaq.com.cn All rights reserved. www.myfaq.com.cn 版权所有