2008-09-10 01:20:32楓冬彥

[PC]Awstats on Windows 2003 安裝

參考幾篇文章
"http://www.jwfly.idv.tw/redirect.php?tid=396&;goto=lastpost"
"http://www.ihao.org/dz5/viewthread.php?tid=136&;highlight=awstats"
"http://awstats.sourceforge.net/docs/awstats_setup.html";

※安裝Perl
※解壓縮 awstats
※在cmd模式下 awstatswwwrootcgi-binawstats_configure.pl 去產生欲分析流量的網址: awstats.mysite.conf
※設定IIS的W3C
date time c-ip cs-username cs-method cs-uri-stem sc-status
sc-bytes cs-version cs(User-Agent) cs(Referer)
打勾「請使用本地時間為檔案命名」(先選每日這個選項才可以勾選)
※修改 awstats.mysite.conf 內
LogFile="C:/WINDOWS/system32/LogFiles/W3SVC1/ex%YY-0%MM-0%DD-0.log"
LogType=W
LogFormat="date time cs-method cs-uri-stem cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes"
SiteDomain="mysite"
DefaultFile="index.html"
Lang="tw"
LoadPlugin="timezone +8"
=> 若要改 utf-8 網頁Lang設定值要改
※ 執行分析程式
awstatswwwrootcgi-binawstats.pl -config=mysite –update
※ 產生網頁
awstatswwwrootcgi-binawstats.pl -config=mysite -output -staticlinks > awstats.mysite.html

※理論上 可以透過Perl可以呈現網頁 不過我倒還不行 繼續研究嚕
http://www.myserver.mydomain/awstats/awstats.pl?config=mysite
http://www.myserver.mydomain/awstats/awstats.pl?month=MM&;year=YYYY&output=unknownos

=>交叉看原文文件和其他網友分享的.就會比較完整嚕。