webalizer not working

knife89

New member
Joined
Jul 12, 2004
Messages
2
Location
va
dns has been resolved for 5 days at least, reverse dns has not been resolved. when trying to get webalizer stats i get this message:

File does not exist

Details

You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used)

am i missing something in setup or is it the reverse dns?
 
try running this command:

Code:
'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

If there still aren't any stats and your sure people have gone to your site (checking the httpd logs) then webalizer is not working properly.
Try reinstalling everything.
Code:
cd /usr/local/directadmin/customapache
./build clean
./build update
./build all

be sure to select yes when it asks to recompile programs, especially GD because those are most likely the culprits.

Although, if your not the admin you won't be able to do this, so if your sure there are stats to be generated but after another day there still aren't any webalizer files, I would suggest contacting your hosting company and have them correct the problem.
 
gave it a try

jmstacy,
gave your suggestion a try will wait a day or two to see if it works. I get about 100 hits a day. Guess we will see. I'll let you know. thanks
 
I just went through a fresh recompile of everything, including GD, and it's still not starting up webalizer.

RH9

GD
drwxrwxrwx 6 200 300 4096 Feb 24 12:06 gd-2.0.15
-rw-r--r-- 1 root root 526904 Jun 17 2003 gd-2.0.15.tar.gz
drwxrwxrwx 6 200 300 4096 Jul 21 21:18 gd-2.0.25
-rw-r--r-- 1 root root 545183 Jun 1 18:52 gd-2.0.25.tar.gz



ran a ./build clean then ./build all

[root@www11 customapache]# /usr/bin/webalizer
/usr/bin/webalizer: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory

^^ That was immediately after the ./build all


[root@www11 customapache]# ./build webalizer
[root@www11 customapache]# /usr/bin/webalizer
/usr/bin/webalizer: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory

Re-ran after the ./build all
Thanks for any help you can offer.
 
I am having the same problem on FreeBSD 4.1. It seems that libpng was not installed, so I installed it, but it does not show up that I have it installed, even though 'make install' worked.

Trying to install webalizer, which requires libpng will not work, since libpng shows it is not installed. I tried using the ./build webalizer, and got this:

gcc -L/usr/local/lib -L/usr/local/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
graphs.o: In function `year_graph6x':
graphs.o(.text+0xd36): undefined reference to `gdImagePng'
graphs.o: In function `month_graph6':
graphs.o(.text+0x1abd): undefined reference to `gdImagePng'
graphs.o: In function `day_graph3':
graphs.o(.text+0x2109): undefined reference to `gdImagePng'
graphs.o: In function `pie_chart':
graphs.o(.text+0x26e1): undefined reference to `gdImagePng'
/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
/usr/local/lib/libgd.so: undefined reference to `libiconv'
*** Error code 1

Stop in /usr/local/directadmin/customapache/webalizer-2.01-10.
-e \n*** The make has failed, do you want to try to make again? (y,n): n

I still think it is a libpng problem on FreeBSD 4.1. Any help would be greatly appreciated.
 
Last edited:
Fixed the problem after countless hours. It turns out the problem was with libgd. The solution was to re-compile the GD library then do:

cd /usr/local/directadmin/customapache
./build clean
./build update
./build all

First had to re compile the GD library. Works now
 
Hello,

If you ever have any problems with webalizer, all you need to do is get a new static binary. Eg, for Fedora 3, you'd type:
Code:
wget -O /usr/bin/webalizer http://files.directadmin.com/services/fedora_3/webalizer
chmod 755 /usr/bin/webalizer
For FreeBSD 4.x:
Code:
wget -O /usr/local/bin/webalizer http://files.directadmin.com/services/freebsd4.8/webalizer
chmod 755 /usr/local/bin/webalizer

You can see the whole list of OS's here:
http://files.directadmin.com/services

Note for freebsd, the webalizer path is /usr/local/bin/webalizer. All other OS's use /usr/bin/webalizer

The reason these binaries will be less trouble is because they are static, meaning all required libraries are included in the binary itself, so you should never see a missing library error. :)

John
 
Back
Top