User Tools

Site Tools


linux:webalizer

Webalizer, starting point

#! /bin/sh
#
# A wrapper for launch the webalizer.
#
# It scans the /etc file looking for files who match
# with webalizer*conf, and run "webalizer" with each
# of these files.
#
#
#
 
# We need this umask because 
# files created by webalizer 
# must be world readable
umask 0022
 
for i in /etc/webalizer.d/*.conf
do
    /usr/bin/webalizer $* -c $i
done

Create the file /etc/cron.d/webalizer:

SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=root
 
#
# this script create the statistics pages
# It starts at 5:00 every day.
#
0 5 * * *      root    /usr/bin/webalizer_wrapper
linux/webalizer.txt · Last modified: 2014/12/24 10:42 (external edit)