[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Webalizer 1.30 fix to 2.01 (step-by-step)



wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.01-06-linuxelf-bin.tgz
tar zxvf webalizer-2.01-06-linuxelf-bin.tgz
cd webalizer-2.01-06-linuxelf
cp webalizer /usr/bin/webalizer
wget ftp://speakeasy.rpmfind.net/linux/redhat/6.2/en/os/i386/RedHat/RPMS/libpng-1.0.5-3.i386.rpm
rpm -i libpng-1.0.5-3.i386.rpm

Thats all there is to it. The new webalizer also has dns resolving, so I
edited /etc/cron.daily/webalizer.pl and changed this line:
`webalizer -n $asite -s $asite -r $asite -q -Q -T -o $thepath $prefix/$asite/logs/web.log`;
to:
`webalizer -p -D /home/dnscache.db -N 15 -n $asite -s $asite -r $asite -q -Q -T -o $thepath $prefix/$asite/logs/web.log`;
The /home/dnscache.db file is used to store the dns information. You can
leave it there, and you don't have to remove it. It just builds up every
time you use webalizer. It could grow to several Mb's but thats no problem
on the /home partition.
The -p command means incremental. I dunno why I use it, but it seems to
work ok.
-N 15 is the number of dns resolve processes that webalizer will start.
You can modify that to your own needs.
webalizer will probably run a bit longer than normal due to the dns
resolving. If it gives problems, just remove the -D and -N param.

With kind regards,

Peter Batenburg

On Thu, 11 Oct 2001, Wayne Sagar wrote:

> >From: "John Poynton" <support@xxxxxxxxxxx>>
>
> >I got annoyed enough to download the 1.30 source and patch webalizer.c
> >... after a little playing around with the Makefile configuration I now
> >have
> >a working Webalizer 1.3 again!
> >
> >It wasn't THAT difficult ... so if others want to follow the same path let
> >me know and I'll post the steps I took
> >- unless someone can suggest a place to upload my working webalizer binary
> >for others to download!
>
> John,
>
> By all means the step-by-step would be great. I suspect most around here
> would be pretty nervous about installing someone elses binary but a guide to
> how you got there would be good, we'd be back running again and we'd learn
> through the process..
>
> Thanks!
> Wayne Sagar