[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Webalizer & Logrotate, lets try it again...
- Subject: [cobalt-users] Re: Webalizer & Logrotate, lets try it again...
- From: "David Thacker" <Cobalt@xxxxxxxxxxxxxx>
- Date: Tue Jul 18 21:07:36 2000
Debbie,
Just edit the /etc/cron.daily/webalizer.pl directly to add any commandline
switches you want.
Since you posted the entire script, I'll post the small mods I made to it on
my machine.
1. I changed the line:
`webalizer -n $asite -q -T -o $thepath $prefix/$asite/logs/web.log`;
to
`webalizer -n $asite -s $asite -r $asite -q -T -o $thepath
$prefix/$asite/logs/web.log`;
(not wrapped in the real pl file of course)
The addition of the -s switch removes the site's own address from the Top
Sites report, and the -r removes the site's own address from the Top Referrers
report.
2. I added the following bit right after the webalizer command line before the
ending brace ( } ):
# Now change ownership of stats files
$messages .=
`chown -R httpd:$name $thepath`;
This changes ownership of the web stats files from root to httpd and the group
to the site number. This enables site owners to manage the stats files via
FTP or FrontPage.
dAvid tHacker
Thacker Network Technologies Inc.
Cobalt@xxxxxxxxxxxxxx
> --__--__--
> Message: 20
> Date: Tue, 18 Jul 2000 23:38:41 -0400
> To: cobalt-users@xxxxxxxxxxxxxxx
> From: Debbie Doerrlamm <wkdwich@xxxxxxxxxxxx>
> Subject: Re: [cobalt-users] Webalizer & Logrotate, lets try it again...
> <4.3.2.7.0.20000718211800.00aea450@xxxxxxxxxxxx>
> Reply-To: cobalt-users@xxxxxxxxxxxxxxx
...
> $messages .=
> `webalizer -n $asite -q -T -o $thepath $prefix/$asite/logs/web.log`;
> }