User Tools

Site Tools


linux:webalizer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:webalizer [2011/11/06 00:32] – creado rlunarolinux:webalizer [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Webalizer, starting point ======
 +
 +
 +<code bash>
 +#! /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
 +
 +</code>
 +
 +
 +Create the file /etc/cron.d/webalizer: 
 +
 +<code cron>
 +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
 +
 +</code>
  
linux/webalizer.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1