cd /usr/ports/www/webalizer
make
make install
make clean
rehash
mkdir /usr/local/www/stats
webalizer -o /usr/local/www/stats /var/log/httpd-access_log

After that, just added it to the root crontab

crontab -e

like this:

0 * * * * /usr/local/bin/webalizer -o /usr/local/www/stats /var/log/httpd-access_log > /var/log/webalizer-hourly

That runs every hour, so that the stats are kept up-to-date.


Comments

comments powered by Disqus