- Last Updated: Saturday, 15 February 2014 20:01
The purpose of this article is to document the steps that were taken to install Webalizer v2.01-10 from source code on my Fedora Core 2 machine. This article discusses three optional means you can get started:
- Quick Method - using the YUM installer
- Installing from source code
- Installing from source code with DNS reverse Look up support
Quick Method - YUM!
Assuming that your system has the YUM installed, this would be the easiest route to go for sure. You can see if your system has YUM installed and configured by issuing the following command:
yum search webalizer
This command on Fedora Core 2 will yeild the following:
[root@canon root]# yum search webalizer
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Looking in available packages for a providing package
Available package: webalizer.i386 0:2.01_10-22 from base matches with webalizer
1 results returned
Looking in installed packages for a providing package
No packages found
Issue the following command:
yum install webalizer
Yum will install the rpm pkg and prompt for dependencies.
Installing Webalizer from Source
Since I maintain my own compiled versions of apache2, php, and openssl, I figured it would be better to compile it from source myself to retain control over where it installs.
The following sequence should be used to get webalizer setup:
- download the source from http://www.mrunix.net/webalizer/download.html
- use gzip to unzip the source: gunzip webalizer-2.01-10.tar.gz
- use tar to unpack the archive: tar -xvf webalizer-2.01-10.tar
enter the webalizer-2.01-10 source directory and do the following
Installing Webalizer from source with DNS looukp support
After reading about Webalizer's ability to perform DNS lookups, I wanted the tool to perform DNS lookups to resolve the IP address data in my Apache web logs and present fully-qualified domain information in the webalizer output data. To enable the DNS resolution capability, simply add '--enable-dns' to the configure command:
This command failed when I first attempted it. It failed b/c my system did not have Berkeley DB 1.85 installed. I downloaded a copy of the source code and patches from www.sleepycat.com . The build instructions were not readily available and the software is somewhat dated. An alternative solution that worked on my Fedora Core 2 system was to download an old Red Hat 7.3 RPM and install that directly. you can obtain a copy of this RPM here.
Install the rpm using the following command:
rpm -ivh db1-1.85-8.i386.rpm
Then repeat the steps to build the webalizer from source:
./configure --enable-dns --with-db=/usr/lib
Lastly, copy /etc/webalizer.conf.sample to /etc/webalizer.conf and edit the file to your liking. All that is needed to run the webalizer is 'webalizer -c /etc/webalizer.conf'.