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]
rlunaro creado
linux:webalizer [2014/12/24 10:42] (current)
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: 2014/12/24 10:42 (external edit)