差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
tech:awstats [2012/04/09 18:51] – 建立 jonathan | tech:awstats [2012/04/09 19:49] (目前版本) – jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== CentOS 安裝設定 AWStats 分析 http log ====== | ||
+ | * 安裝環境 : CentOS 5.8 i386 | ||
+ | ===== 安裝程序 ===== | ||
+ | * 透過 rpmforge Repository 來安裝 | ||
+ | <code sh> | ||
+ | yum install awstats | ||
+ | </ | ||
+ | (1/3): perl-Geo-IP-1.38-1.el5.rf.x86_64.rpm | ||
+ | (2/3): geoip-1.4.6-1.el5.rf.x86_64.rpm | ||
+ | (3/3): awstats-7.0-2.el5.rf.noarch.rpm | ||
+ | </ | ||
+ | |||
+ | ===== 設定程序 ===== | ||
+ | * 目標分析兩個 log | ||
+ | * aremgr (apache) : / | ||
+ | * ssl_svn (apache ssl) : / | ||
+ | * 建立兩個 config 檔<code sh> | ||
+ | cd / | ||
+ | cp awstats.model.conf awstats.aremgr.conf | ||
+ | cp awstats.model.conf awstats.ssl_svn.conf | ||
+ | </ | ||
+ | * / | ||
+ | : | ||
+ | SiteDomain=" | ||
+ | : | ||
+ | </ | ||
+ | * / | ||
+ | : | ||
+ | LogFile="/ | ||
+ | : | ||
+ | LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd | ||
+ | : | ||
+ | SiteDomain=" | ||
+ | : | ||
+ | ShowAuthenticatedUsers=1 | ||
+ | : | ||
+ | </ | ||
+ | * 設定 awstats 網頁存取權限 | ||
+ | * / | ||
+ | : | ||
+ | < | ||
+ | DirectoryIndex awstats.pl | ||
+ | Options ExecCGI | ||
+ | # order deny,allow | ||
+ | # deny from all | ||
+ | # allow from 127.0.0.1 | ||
+ | </ | ||
+ | : | ||
+ | </ | ||
+ | * 設定每小時自動分析 log | ||
+ | * / | ||
+ | #!/bin/bash | ||
+ | |||
+ | if [ -f / | ||
+ | exec / | ||
+ | fi | ||
+ | exit 0 | ||
+ | </ | ||
+ | * 透過 AWStats 網頁看成果 | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ===== 參考網址 ===== | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | {{tag> |