portmaster www/webalizer

vérifier dans httpd.conf

/var/log/httpd-access.log

copier

 cp /usr/local/etc/webalizer.conf-dist /etc/webalizer/test.exemple.com

vérifier existence du fichier de log access

/var/log/httpd-access.log

editer fichier

nano /etc/webalizer/test.exemple.com

executer

webalizer -c /etc/webalizer/test.exemple.com

sources

http://adityo.blog.binusian.org/?p=135

#crontab -e

1 * * * * /root/dowebalizer >>/dev/null 2>&1

i will set the crontab every 1 hour to execute the shell script on /root/dowebalizer

Here is the cron list explanation  :

  1. minute (0-59),
  2. hour (0-23),
  3. day of the month (1-31),
  4. month of the year (1-12),
  5. day of the week (0-6 with 0=Sunday).

ooh ya , don’t forget to create the shell script on /root/dowebalizer

vi /root/dowebalizer
#!/usr/bin/perl
use strict;

my @files = </etc/webalizer/*.conf>;

foreach my $file (@files) {
        chomp($file);
        system("/usr/local/bin/webalizer -c $file");
}
 
Connexion a la base impossible