[置頂]

書單: 安迪葛洛夫:Only paranoid survives.

Dec 3, 2005

[團契網站] 安裝awstats 筆記

[原來awstats 沒有在server 上,難怪我用 pkg_info -L, pkg_info -x 都找不到]

[11:03am]kiwi@www:/usr/ports/www/awstats# make install
===> Vulnerability check disabled, database not found
=> awstats-6.4.tgz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/awstats/.
awstats-6.4.tgz 45% of 896 kB 45 kBps

[安裝完就找到了]
[11:04am]kiwi@www:/usr/ports/www/awstats# pkg_info -x awstats
Information for awstats-6.4_1:

Comment:
Free real-time logfile analyzer to get advanced web statistics


Description:
AWStats is short for Advanced Web Statistics. It's a free tool that
generates advanced web (but also ftp or mail) server statistics,
graphically.

This log analyzer works as a CGI or from command line and shows you
all possible information that your logs contain, in a few graphical
web pages. It uses a partial information file to be able to process
large log files, often and quickly.

It can analyze log files from IIS (W3C log format), Apache log files
(NCSA combined/XLF/ELF log format or common/CLF log format), WebStar
and most of all web, proxy, WAP, and streaming servers (and FTP
servers or mail logs).

WWW: http://awstats.sourceforge.net



[11:05am]kiwi@www:/usr/ports/www/awstats#



//////////////////////////////////////////////////////////////////////
[以前有裝過 awstats 嗎]
[11:32am]kiwi@www:/usr/local/www/cgi-bin# ls -al awstats*
-r--r--r-- 1 www www 52781 Sep 7 2004 awstats.conf
-r--r--r-- 1 root wheel 52781 Feb 13 2005 awstats.conf.bak
-r-xr-xr-x 1 root wheel 526955 Dec 3 11:25 awstats.pl
-r--r--r-- 1 root wheel 58322 Dec 3 11:25 awstats.site.conf

/////////////////////////////////////////////////////////////////////
* Rename /usr/local/www/awstats/cgi-bin/awstats.model.conf to awstats.site.conf to setup awstats
* Documentation has been installed in /usr/local/share/doc/awstats

install -o root -g wheel -m 444 /usr/ports/www/awstats/work/awstats-6.4/docs/images/* /usr/local/share/doc/awstats/images
install -o root -g wheel -m 444 /usr/ports/www/awstats/work/awstats-6.4/docs/*.* /usr/local/share/doc/awstats
*****************************************************************
Please add the following to your apache config, and restart.

#
# Directives to allow use of AWStats as a CGI
#
Alias /awstatsclasses "/usr/local/www/awstats/classes/"
Alias /awstatscss "/usr/local/www/awstats/css/"
Alias /awstatsicons "/usr/local/www/awstats/icons/"
ScriptAlias /awstats/ "/usr/local/www/awstats/cgi-bin/"

#
# This is to permit URL access to scripts/files in AWStats directory.
#

Options None
AllowOverride None
Order allow,deny
Allow from all


*****************************************************************
===> Registering installation for awstats-6.4_1


/////////////////////////////////////////////////////////////////////////
[11:39am]kiwi@www:/usr/local/www/cgi-bin# perl awstats.pl -config=www.canaan.org.tw -update
Update for config "./awstats.conf"
With data in log file "/var/log/httpd-access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Jumped lines in file: 0
Parsed lines in file: 2855752
Found 20270 dropped records,
Found 2572 corrupted records,
Found 0 old records,
Found 2832910 new qualified records.
[11:45am]kiwi@www:/usr/local/www/cgi-bin#

No comments: