Tuesday, January 31, 2012

install and configure Webalizer


To install Webalizer open up a terminal and enter the following commands:
$ sudo aptitude update 
$ sudo aptitude install webalizer

Webalizer didn't work right away, so I found a fix for it.

Edit webalizer.conf with your favorite editor:
$ vi /etc/webalizer/webalizer.conf
Find the following:
LogFile /var/log/apache/access.log.1
I'm using apache2 so replace the line with:
LogFile /var/log/apache2/access.log
Save and exit.

To run webalizer, enter this command:
sudo webalizer
and then go to http://localhost/webalizer/


Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:

$sudo crontab -e and add the line:

0 * * * * weblize