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 :
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");
}