Webalizer |
|
January 31, 2008 |
Webalizer
Webalizer is a web server log file analysis program, which produces usage statistics in HTML format for viewing with a browser. The results are presented in both columnar and graphical format, which facilitates interpretation. Yearly, monthly, daily and hourly usage statistics are presented, along with the ability to display usage by site, URL, referrer, user agent, browser and country, user agent and referrer are only available if your web server produces Combined log format files. The person who write this program can be reached with Bradford L. Barrett, brad@mrunix.net.
-
Webalizer RPM is installed by default. Uninstall Webalizer
rpm –eInstall GeoIP library
- tar –zxvf /usr/src/GeoIP.tar.gz
- cd /usr/src/GeoIP-version
- make
- make
Install and patch Webalizer with geolizer
- tar –zxvf style=”list-style-type : lower-alpha;”>tar –zxvf style=”list-style-type : lower-alpha;”>cd /usr/src
- patch –p0 < style="list-style-type : lower-alpha;">rpm –Uvh style=”list-style-type : lower-alpha;”>rpm –Uvh style=”list-style-type : lower-alpha;”>Add share libraries path /usr/lib to /etc/ld.so.conf
- ldconfig
- cd style=”list-style-type : lower-alpha;”>./configure –-enable-geoip
- make
- make
Webalizer configuration file webalizer.conf.sample can be found in /etc
-
Create a folder to host respective webalizer configure file for each virtual hosting, mkdir
mv /etc/webalizer.conf.sample
vi 300GeoIP yesGeoIPDatabase clfOutputDir webalizer.histIncremental yesIncrementalName webalizer.currentReportTitle Usage Statistics forHostNamePageType cgiPageType phpPageType shtmlHTMLBody HTMLBody BODY.body {font-family: Helvetica, Arial}A:hover {color:#4F709F}HTMLBody Quiet yesFoldSeqErr yesHideURL *.gifHideURL *.GIFHideURL *.jpgHideURL *.JPGHideURL *.pngHideURL *.PNGHideURL *.raSearchEngine yahoo.com p=SearchEngine altavista.com q=SearchEngine google.com q=SearchEngine eureka.com q=SearchEngine lycos.com query=SearchEngine hotbot.com MT=SearchEngine msn.com MT=SearchEngine infoseek.com qt=SearchEngine webcrawler searchText=SearchEngine excite search=SearchEngine netscape.com search=SearchEngine mamma.com query=SearchEngine alltheweb.com query=SearchEngine northernlight.com qr
-
To update GeoIP.dat in future:
wget -P /usr/srcgunzip /usr/src/GeoIP.dat.gz
mv /usr/src/GeoIP.dat
Run webalizer, webalizer –c />You may want to add shared libraries path for libGeoIp into /etc/ld.so.conf
By default, libGeoIP library is installed in Run ldconfig after changes.Add a crontab entry as follow (runs everyday at 0010am):
10 0 * * * for i in /etc/webalizer/*.conf; do /usr/local/bin/webalizer -d –c $i; done

January 31, 2008
Leave a Reply