I have ubuntu 8.04 installation with then apache2 turns.
Now I to be able keep how many visitors to come has installed webalizer.
This works very well at but 1 vhost. Now I try establish webalizer for several vhosts.
Now the problem is as follows:
You see script standing at the bottom of shell. I have also made these and tidy produced. When he twists now the cronjob transfers the earlier day and only puts the day of yesterday.
You will understand that not the intention is. He must put already old storing and the following.
Someone some idea how I webalizer can all traffic-jams read to the end have let ipv each time the last?
#! /bin/sh
logdir=/var/log/apache2
webalizerconf=/etc/webalizer/webalizer.conf
yesterdaysdate= `/bin/date - d 1 day ago +%m%d%Y `
cd $ {logdir}
for directory in *
do
if [- d $ {directory}]; then
/usr/bin/webalizer - c $ {webalizerconf} - n $ {directory} \
- s $ {directory} - r $ {directory} - q - T - o /var/www/ $ {directory} /web/stats \
$ {logdir}/$ {directory}/$ {yesterdaysdate} - access-unwieldly
fi
done
exit 0
Bookmarks