Chinaunix首页 | 论坛 | 博客
  • 博客访问: 34573
  • 博文数量: 2
  • 博客积分: 1726
  • 博客等级: 上尉
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-04 17:33
文章分类

全部博文(2)

文章存档

2008年(2)

我的朋友

分类:

2008-12-23 17:49:27

------------------------------------------------------------
Downloads
------------------------------------------------------------
1. XAMPP For Windows


2. AWSTATS


3. ActivePerl For Windows


------------------------------------------------------------
Installations
------------------------------------------------------------
1. 安装 XAMPP 到 D:\xampp

2. 安装 Perl 到 C:\perl

3. 安装 Awstats 到 D:\xampp\htdocs\awstats

------------------------------------------------------------
Configuration
------------------------------------------------------------

1. Apache
编辑 D:\xampp\apache\conf\httpd.conf , 在配置文件的底部加入以下内容:

Alias /icon "D:/xampp/htdocs/awstats/wwwroot/icon/"
Alias /awstatsclasses "D:/xampp/htdocs/awstats/wwwroot/classes/"
Alias /awstatscss "D:/xampp/htdocs/awstats/wwwroot/css/"
Alias /awstatsicons "D:/xampp/htdocs/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "D:/xampp/htdocs/awstats/wwwroot/cgi-bin/"

Options None
AllowOverride None
Order allow,deny
Allow from all


2. AWSTATS

编辑 D:\xampp\htdocs\awstats\wwwroot\cgi-bin\awstats.pl
将第一行内容改为 #!c:\perl\bin\perl.exe

复制配置文件D:\xampp\htdocs\awstats\wwwroot\cgi-bin\awstats.model.conf 为 awstats.域名.conf

编辑 awstats.域名.conf , 具体重要参数如下:

Particular attention should be given to these parameters:

- Verify the
value.  It should be the full path of your server log file (You can also use a relative path from your awstats.pl directory, but a full path avoids errors).

- Verify the
value.  It should be "W" for analyzing web log files.

- Check if is
set to "1" (for "NCSA apache combined/ELF/XLF log format") or use a custom log format if you don't use the combined log format.

- Set the
parameter to the main domain name or the intranet web server name used to reach the web site to analyze (Example: ).
If you have several possible names for same site, use the main domain name and add the others to the list in the parameter.

- You can also change other parameters if you want. The full list is described in page.

Installation and configuration is finished. You can jump to the section.

* Update from a browser:

AWStats statistics can also be updated from a browser, providing real-time statistics, by clicking the "Update now" link that appears when AWStats is used as a CGI (The URL is described in the next section '').

Warning!!

To enable this link, the configuration file parameter must be set to 1 (The link is not enabled by default).

Using the on-line update does not prevent you from running the update process automatically on a scheduled basis (the command is same as that of the first update process above).

For this, you have two choices:

- Include the update command in your logrotate process. See for details.

- Or add instructions in your crontab (Unix/Linux) or your task scheduler (Windows), to regularly launch the Awstats update process. See for details.
See the AWStats for the recommended update/logrotate frequency.

手动更新Log数据

perl awstats.pl -config=mysite -update

访问AWSTATS日志分析




------------------------------------------------------------
End
阅读(8457) | 评论(1) | 转发(0) |
0

上一篇:Cacti For Windows 架设配置

下一篇:没有了

给主人留下些什么吧!~~

chinaunix网友2010-12-17 15:26:49

很好,帮了我大忙