webalizer very simple

collect log data for cpecific virtualhost:

touch /var/log/apache2/mywwwfiles_access_log

in apache virtualhost configuration you need to have:
CustomLog /var/log/apache2/mywwwfiles_access_log combined

save and reload apache

/etc/init.d/apache2 reload

then setup webalizer files:

mkdir -p /home/mywwwfiles/webalizer
cp /etc/webalizer/webalizer.conf /home/mywwwfiles/webalizer
cd /home/mywwwfiles/webalizer
nano webalizer.conf

you need to edit only these three:

LogFile /var/log/apache2/mywwwfiles_access_log
OutputDir /home/mywwwfiles/webalizer
HostName mywwwfiles.com

then run

webalizer -q

that will create all html files

enjoy 🙂


Posted

in

by

Tags:

Comments

One response to “webalizer very simple”

  1. Bogi Avatar
    Bogi

    Also in webalizer.conf add:
    DNSCachefile /home/mywwwfiles/webalizer/dns_cache.db
    DNSChildren 10

Leave a Reply

Your email address will not be published. Required fields are marked *