Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

30.2. Compile

Move into the new Webalizer directory and type the following commands on your terminal:
        CC="egcs" \
        CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
        ./configure \
        --prefix=/usr
      
        [root@deep ]/webalizer-1.30-04# make
        [root@deep ]/webalizer-1.30-04# make install
        [root@deep ]/webalizer-1.30-04# mkdir /home/httpd/usage
      

  • The make command will compile all source files into executable binaries,

  • The make install will install the binaries and any supporting files into the appropriate locations.

  • The mkdir will create a new directory named usage under the /home/httpd/ directory where we'll handle all related Webalizer files.

Please do cleanup later:
        [root@deep /]# cd /var/tmp
        [root@deep ]/tmp# rm -rf webalizer-version/ webalizer-version-src.tgz
      
The rm command will remove all the source files we have used to compile and install Webalizer. It will also remove the Webalizer compressed archive from the /var/tmp directory.

30.2.1. Configurations

Note: All the configuration files required for each software described in this book has been provided by us as a gzipped file, floppy.tgz for your convenience. This can be downloaded from this web address: https://www.openna.com/books/floppy.tgz You can unpack this to any location on your local machine, say for example /tmp, assuming you have done this your directory structure will be /tmp/floppy. Within this floppy directory each configuration file has its own directory for respective software. For example Webalizer configuration file are organised like this:

            total 8
            -rw-r--r--    1 harrypotter     harrypotter          208 Jul 26 18:04 webalizer.conf
          
You can either cut and paste this directly if you are faithfully following our instructions from the begining or manually edit these to modify to your needs. This facility is there though as a convenience but please don't forget ultimately it will be your responsibility to check, verify, etc. before you use them whether modified or as it is.

To run Webalizer, the following file is required, and must be created or copied to the appropriate directory on your server.

  1. Copy the webalizer.conf file to the /etc/ directory.

Tip: To run Webalizer, the following file from the floppy.tgz archive is required and must be created or copied to the appropriate directory on your server. Copy the sxid.conf file to the /etc/ directory. or alternatively you can copy and paste directly from this book to the concerned file.

 
 
  Published under the terms of the Open Publication License Design by Interspire