Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7401413
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: WINDOWS

2009-09-17 13:19:03

awstats for win IIS
首先
到下载awstats for win
到下载perl for win
安装perl
5.10.1安装完之后,会在IIS增加应用程序映射,所以我们就只要下一步下一步就完成了
然后到"WEB服务器扩展"里面,全部允许!
安装awstats
----- AWStats awstats_configure 1.0 (build 1.8) (c) Laurent Destailleur
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to 'understand' all possible ways to use AWStats...
Read the AWStats documentation (docs/index.html).
-----> Running OS detected: Windows
-----> Check for web server install
awstats_configure did not find your Apache web main runtime.
Please, enter full directory path of your Apache web server or
'none' to skip this step if you don't have local web server or
don't have permission to change its setup.
Example: c:\Program files\apache group\apache
Apache Web server path ('none' to skip):
>
这里输入none
Please, enter full directory path of your Apache web server or
'none' to skip this step if you don't have local web server or
don't have permission to change its setup.
Example: c:\Program files\apache group\apache
Apache Web server path ('none' to skip):
> none
Your web server config file(s) could not be found.
You will need to setup your web server manually to declare AWStats
script as a CGI, if you want to build reports dynamically.
See AWStats setup documentation (file docs/index.html)
-----> Update model config file 'C:/Program Files/AWStats\wwwroot\cgi-bin\awstat
s.model.conf'
  File awstats.model.conf updated.
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y -----------这里y

-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example:
Example: demo
Your web site, virtual server or profile name:
>             <-------------------------你的域名
-----> Create config file 'C:/Program Files/AWStats\wwwroot\cgi-bin\awstats.www.
inbelle.com.conf'
 Config file C:/Program Files/AWStats\wwwroot\cgi-bin\awstats.
nf created.
-----> Add update process inside a scheduler
Sorry, for Windows users, if you want to have statistics to be
updated on a regular basis, you have to add the update process
in a scheduler task manually (See AWStats docs/index.html).
Press ENTER to continue...
回车
A SIMPLE config file has been created: C:/Program Files/AWStats\wwwroot\cgi-bin\
awstats.nf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for '' with command:
> perl awstats.pl -update -config=
You can also build static report pages for '' with command:
> perl awstats.pl -output=pagetype -config=
Press ENTER to finish...
回车结束
 
原创文章,请注明转自:http://badb0y.cublog.cn
 
到这里安装就算完成了,可以查看自带的帮助C:\Program Files\AWStats\docs\awstats_setup.html
我们来配置我们的IIS,让它能够支持awstats
网站-->属性
在活动日志格式这里选"W3C扩展日志文件格式",再点"属性"再先到"高级"
日期(date)
时间(time)
客户端IP地址(c-ip)
用户名(cs-username)
方法(cs-method)
URI资源(cs-uri-stem)
URI查询(cs-uri-query)
协议状态(sc-status)
发送字节数(sc-bytes)
协议版本(cs-version)
用户代理(cs(User-Agent))
引用站点(cs(Referer))
先上这些,其它都不要!
再新建虚拟目录cgi-bin指到C:\Program Files\AWStats\wwwroot\cgi-bin
新建虚拟目录icon指到C:\Program Files\AWStats\wwwroot\icon
修改C:\Program Files\AWStats\wwwroot\cgi-bin下的配置文件
awstats.nf
LogFile="C:\WINDOWS\System32\LogFiles\W3SVC1\ex%YY-0%MM-0%DD-0.log" 
DirData="C:\Program Files\AWStats\wwwroot\cgi-bin\data"
LogFormat= 2
AllowToUpdateStatsFromBrowser=1 
LoadPlugin="timezone +8"
停止IIS,删除日志!开始,
awstats.pl -config= -update

C:\Program Files\AWStats\wwwroot\cgi-bin>awstats.pl -config= -upd
ate
Create/Update database for config "C:\Program Files\AWStats\wwwroot\cgi-bin/awst
ats.nf" by AWStats version 6.9 (build 1.925)
From data in log file "C:\WINDOWS\System32\LogFiles\W3SVC1\ex090916.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 147
 Found 1 dropped records,
 Found 3 corrupted records,
 Found 0 old records,
 Found 143 new qualified records.
防问

OK,,完事了!感觉还可以呀!
 
原创文章,请注明转自:http://badb0y.cublog.cn
阅读(1340) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-09-17 15:51:26

推荐视频会议、视频直播、视频面试、视频招聘、视频监控等视频系统: http://www.eyesom.com/products/var.htm