架設 awstats

在 debian 架設 awstats
apt-get install awstats
ln -s /usr/share/awstats/icon/ awstats-icon
設定一下 /etc/awstats/awstats.conf
主要是設 SiteDomain="" 這行要設定自己的 domain name
再加 cron.
0 0 * * * /usr/lib/cgi-bin/awstats.pl -update -config=ip位址 > /dev/null
就可以在這邊看到了 http://yourhostname/cgi-bin/awstats.pl


# W - For a web log file
# S - For a streaming log file
# M - For a mail log file
# F - For a ftp log file
LogType=W 可以設定想要分析哪種 Log.
# 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
# 2 - Old IIS log format (IIS W3C log format). See FAQ for IIS 6.x.
# 3 - Webstar native log format.
# 4 - Apache or Squid native common log format (NCSA common/CLF log format)
# With LogFormat=4, some features (browsers, os, keywords...) can't work.
LogFormat=1 (apache log 設定 combined 就是最完整的 Log)
也可以自行定義自己想要的分析檔內容.
看要不要分析有人來亂的~~ 不過耗的系統效能蠻高的 ~
# 0 disables Worms detection.
# 2 reduces AWStats speed by 15%
LevelForWormsDetection=2

作者: Tsung

對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料