PDA

View Full Version : webalizer not working



knife89
07-12-2004, 08:26 PM
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?

jmstacey
07-13-2004, 02:08 AM
try running this command:


'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.


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.

knife89
07-13-2004, 06:56 AM
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

hostpc.com
07-21-2004, 07:33 PM
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.

werwin01
08-02-2004, 06:24 AM
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.

werwin01
08-05-2004, 01:48 AM
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

DirectAdmin Support
02-06-2005, 07:59 PM
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:
wget -O /usr/bin/webalizer http://files.directadmin.com/services/fedora_3/webalizer
chmod 755 /usr/bin/webalizer
For FreeBSD 4.x:
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

DirectAdmin Support
02-19-2005, 02:30 PM
I've created a little help document to assist admins finding and fixing the issue.

http://help.directadmin.com/item.php?id=63

John