監控網站紀錄檔

點閱人數:47次 三月 23rd, 2007 by ㄚ琪 | 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Google廣告工具 一書裡示範使用webalizer
我在Ubuntu機器裡裝webalizer後,發現全是亂碼, 真是不優

只好改用之前在用的AWStats, Peter’s blogAwstats under Ubuntu寫的不錯!

我補充一下安裝的步驟:
1.sudo apt-get awstats
系統會建議您也安裝:libgeo-ipfree-perl,libnet-xwhois-perl,我就順便也給他裝了

另外,設定檔中的LogFormat=1,需要跟apache的設定檔搭配,也就是其access_log的格式要長得像下面這樣:
111.22.33.44 – - [10/Jan/2001:02:14:14 +0200] “GET / HTTP/1.1″ 200 1234 “http://www.fromserver.com/from.htm” “Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)”
在apache中的命令像這樣:
CustomLog /var/log/apache2/access.log combined

嗯,這樣行了,雖說是big5編碼的,但是使用起來不會有亂碼!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Tags: ,

發表迴響

名稱:(必)
電子郵件位址(並不會被公開)(必)
個人網站


Fatal error: Call to undefined function cbnet_comment_captcha() in /home/job/public_html/wp-content/themes/achi/comments.php on line 84