AWStats 統計報表雖然可以查詢依存取次數排序的 URL, 但也僅止於 URL, 還要點進去看才知道是哪篇文章, 真的很不方便. 在 MovableType 官方網頁, 也只找到 AWStatsReferers 這個跟 AWStats 有關的 Plug-in, 可惜它只做到列出 PageRefer 的功能…
那就自己寫囉~ Perl? 沒信心; PHP? 系統慢, 效能差… 不然用 Shell Script 吧! 順便練習一下語法 :)
環境說明: 裝有 AWStats 統計套件的 Linux 環境 继续阅读 »
step 1 安装
1、 安装apache2.2.0
tar jxvf httpd-2.2.0 tar.bz2
cd httpd-2.2.0 继续阅读 »
在配置文件中把decodeutfkeys这个plugin打开就可以了。(配置文件就是相对网站的那个文件,例如:awstats.cuobie.cn.conf)
就去去掉# LoadPlugin=”decodeutfkeys” 前面的#就可以了。
继续阅读 »
1、 下载AWStats, 下载地址:http://sourceforge.net/projects/awstats/
2、 如果Apache原配置不支持cgi,则要稍做修改:
>>cd /usr/local/apache2/bin/
>>./apxs -c -i /usr/local/src/httpd-2.2.3/modules/generators/mod_cgi.c 继续阅读 »
这个需要以前配置过GeoIP,我写过配置的说明,不多说了
下载MaxMind’s GeoLiteCity database
www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gzip -d GeoLiteCity.dat.gz
大约25M 继续阅读 »