Buy Reviews
Powered by MaxBlogPress  

監控網站紀錄檔

點閱人數:27次 三月 23rd, 2007 by ㄚ琪 |

加入BlogAD

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

Tags: ,

發表迴響

名稱:(必)
電子郵件(並不會被發佈)(必)
個人網站

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>