Unix Hosting News & Commentary

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.

  1. Webalizer RPM is installed by default. Uninstall Webalizer
    rpm –e

    Install GeoIP library

    1. tar –zxvf /usr/src/GeoIP.tar.gz
    2. cd /usr/src/GeoIP-version
    3. make
    4. make

      Install and patch Webalizer with geolizer

      1. tar –zxvf style=”list-style-type : lower-alpha;”>tar –zxvf style=”list-style-type : lower-alpha;”>cd /usr/src
      2. 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
      3. ldconfig
      4. cd style=”list-style-type : lower-alpha;”>./configure –-enable-geoip
      5. make
      6. make

        Webalizer configuration file webalizer.conf.sample can be found in /etc

      7. 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 forHostName PageType 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

    5. To update GeoIP.dat in future:
      wget -P /usr/src

      gunzip /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

  1. No user reviews yet.


Leave a Reply





Blogroll