apt-get install awstats
cp /etc/awstats/awstats.conf /etc/awstats/awstats.網址.conf
vi /etc/awstats/awstats.網址.conf
修改log檔路徑
LogFile="/var/log/apache/access.log"
修改
LogFormat=1
例如1代表
# 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
2代表IIS日志
設定
SiteDomain="網址"
初始化
/usr/lib/cgi-bin/awstats.pl -config=網址
網址
http://網址/cgi-bin/awstats.pl
如果沒有圖
在網頁根目錄下
ln -s /usr/share/awstats/icon/ awstats-icon
設定 crontab
(每8小時跑一次)
0 [...]