发新话题
打印

AWSTATS 安装指南

AWSTATS 安装指南

AWStats是国外最流行的的WEB日志分析工具(针对Apache服务器)。
主页: http://awstats.sourceforge.net/

安装教程是从网上copy过来,不是我自己写的,只是转贴过来方便大家查看。

一、下载awstats: http://keihanna.dl.sourceforge.n ... ats/awstats-6.0.tgz
二、建立目录/etc/awstats: mkdir /etc/awstats 并确保可写属性
三、解包: tar zxvf awstats-6.0.tgz
四、cd awstats-6.0/tools
五、运行configure.pl: perl configure.pl,仔细看它的提示,apache默认安装时的log文件格式不符合awstats的要求,它会自动更改httpd.conf文件的相关设置,如果提示有说到它更改了设置,最好手工把apache的日志文件清一下,日志文件在 /usr/local/apache/logs目录下,应该是access_log文件(你的apache的安装路径可能跟我的不同)。另外,注意一下,要你填域名的时候别填错了。:)
六、在你apache设置的documentroot下建立stat目录,stat目录下建立data目录,并保证可写属性
七、把awstats解包目录下的wwwroot目录下的icon目录整个拷到你上一步建立的stat目录下
八、在apache的cgi-bin目录下建立awstats目录,将awstats解包目录下的wwwroot/cig-bin目录下的所有文件和子目录拷到apache/cig-bin/awstats下
九、修改etc/awstats/awstats.你的域名.conf文件:
AllowToUpdateStatsFromBrowser=1
DirIcons="/stat/icon"
LogFile="/usr/local/apache/logs/access_log"
SiteDomain="你的域名"
DirData="/var/www/stat/data"
DirCgi="/awstats"
十:进到awstats的cgi-cin目录,执行perl awstats.pl -config=你的域名 -update
十一:浏览器打开http://域名/cig-bin/awstats/awstats.pl?config=你的域名。。。。(from http://www.dayuer.com/dayuer/articles/4039.aspx)

TOP

如果使用 Powweb 的主机,可以按照powweb的教程操作:
复制内容到剪贴板
代码:
Set-up for Awstats

1. Download the latest stable version of AWStats from:

[url]http://awstats.sourceforge.net/#DOWNLOAD[/url]

Look for the line marked, Last stable , and click on the .zip file link.

2. Unzip the downloaded awstats-59.zip file. When you unzip the file, you should see the following files and directories (your version number may be different, but the main directory should still be named awstats-X.X). Everything you need for this tutorial is located in the cgi-bin and icon directories, which are located inside the wwwroot directory (see the expanded view of the directory structure below).

3. Open the cgi-bin directory and locate the file named awstats.model.conf . Open the file in a text editor such as notepad.

Do not edit this file with a word processing program like Microsoft Word - it must be edited in a plain text editing program.

4. Save the awstats.model.conf file as awstats.yourdomain.com.conf .

5. Replace yourdomain.com with your actual domain name. Be sure to use yourdomain.com and not [url]www.yourdomain.com[/url] .

In your new awstats.yourdomain.com.conf file, find and change the following lines:

   LogFile="/var/log/apache/access.log"
       Change to:
    LogFile="/www/ u / username /logs/access_log.1"

Replace u / username in the above line with the correct username path for your account. That path can be found in Member Operations ([url]http://ops.powweb.com[/url] ) in the "HTTP (Website)" area, under the "Packages" tab.

   SiteDomain=""
       Change to:
    SiteDomain=" yourdomain.com "

OPTIONAL: If you want to have the ability to update your stats manually from a web browser, change the following:

   AllowToUpdateStatsFromBrowser=0
       Change to:
    AllowToUpdateStatsFromBrowser=1

6 Log in to your PowWeb account via FTP.

Upload the contents of the awstats cgi-bin directory from your computer to the cgi-bin directory in your PowWeb account.

Do not upload the awstats cgi-bin directory itself - only the directories and files inside the cgi-bin directory.

Upload the entire awstats icon directory from your computer to the htdocs directory in your PowWeb account.

7 The last step is to create a new text file named crontab , which is going to automatically update your stats at a given interval.

TOP

支持!!!

TOP

最好是这样,大家用其他主机的,也把那个主机的使用经验贴出来。

TOP

我用的怎么都是 自动安装的
马甲1号粉丝会成员::<加入方法>
新会员:【U571-233】 【红山茶】 【Jim.zh】 【leak】【mygod】 【敢刷天下单】 【hooligancex】【hingman】【changhefirst】
老会员:【leny】【cyan】【yxsoft】 【馬甲壹號】【hwjmyz 】【makesoft】【reika】(接收所有马甲、月入万刀、有特殊才艺者....)

TOP

发新话题