程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> awstats 網站訪問量統計

awstats 網站訪問量統計

編輯:關於MYSQL數據庫
awstats 網站訪問量統計,主要用於Web Server為apache

Install, Setup and Use AWStats

AWStats common use is made in 3 steps:
  • Step 0 : The install and setup
  • Step 1 : The build/update of statistics
  • Step 2 : The reading of results

Before starting, check that your Perl version is at least 5.005_03 (or higher) by running the perl -v command. If not, you can install a recent Perl interpreter from ActivePerl (Win32) or Perl.com (Unix/Linux/Other).

Step 0 : Install and Setup with awstats_configure.pl


A) With apache or compatible server (on Unix/Linux, Windows, MacOS...)

* Step 0-1:
(if you use a package provided with a Linux distribution or Windows installer, action done in step 0-1 might have already be done, if you don't know you, do it again)

After downloading and extracting the AWStats package, you should run the awstats_configure.pl script to do several setup actions. You will find it in the AWStats tools directory (If using the Windows installer, the script is automatically launched):
perl awstats_configure.pl
    This is what the script do/ask (you can do all those steps manually instead of running awstats_configure.pl if you prefer):

    A) awstats_configure.pl try to find your apache web server config file (ask path if not found) and check inside your server log format configuration. If you use a common log, awstats_configure.pl will suggest to change it to have NCSA combined/XLF/ELF log format (you can use your own log format but this predefined logformat is often the best choice and make setup easIEr).
    If you answer yes, awstats_configure.pl will modify your httpd.conf to change all the following directives:
    CustomLog /yourlogpath/yourlogfile common
    into
    CustomLog /yourlogpath/yourlogfile combined

    See your apache manual for more information on this directive.
    To be sure the log format change is effective, later you can stop apache, remove all old log files,
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved