Webalizer : Error while loading shared libraries: libdb-4.7.so

webunder

New member
Joined
Apr 18, 2012
Messages
6
Webalizer on my VPS not work for all domain.It's show me..

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).
Info for Admins: Downloading a new webalizer binary

I was try as on..
http://help.directadmin.com/item.php?id=63
But no luck..



I'm using
CentOS 5.0 64-bit
DirectAdmin 1.40.3
dovecot 2.1.3

The database on host and account of directadmin moved from lower DA version and lower OS version,32Bit too.(Not sure)
When I key webalizer from ssh it's show me..

webalizer: error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory

I was check on
/home/user/domains/mydomain.com/stats
and there are no file at all,The dir owner is root now(it's use to be domain owner username)

What should I do now? I reay want to user webalizer I want to monitor what file and what ip are load too much on my vps now.
Please help me.
Thank you.
 
Try this command and paste the results here:

Code:
find /usr/lib -name libdb-*so

If you want to use Awstats instead of Webalizer you can follow this guide:

http://help.directadmin.com/item.php?id=277
I don't know which one is better so I just setup awstats by
cd /usr/local/directadmin/scripts
./awstats.sh
and
edit
/usr/local/directadmin/conf/directadmin.conf
add
awstats=1
webalizer=1
I want to use awstats and webalizer to see which one better then I'll remove another one.

But after I finish install awstats and I check on Directadmin at CMD_USER_STATS page
I found..
No awstats as disabled option box after each domain.
eezx1.png

and I can't click on each domains to check for webalizer anymore?
I try to change directadmin.conf to
awstats=0
webalizer=1
But it's still show me the same result as above images.
What should I do now? Can it's work both together?
Actually I prefer webalizer more than awstats but how can I uninstall awstats now? I don't want it to load more space for stat log too.

Please help.
 
try:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build set webalizer yes
./build set awstats no
mv /usr/bin/webalizer /usr/bin/webalizer.old
yum -y install gd gd-devel
./build webalizer d

You might also have to do this to fix the libdb problem:

Code:
ln -s /lib/libdb-4.3.so /lib/libdb-4.7.so
 
Last edited:
try:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build set webalizer yes
./build set awstats no
mv /usr/bin/webalizer /usr/bin/webalizer.old
yum -y install gd gd-devel
./build webalizer d

You might also have to do this to fix the libdb problem:

Code:
ln -s /lib/libdb-4.3.so /lib/libdb-4.7.so

Thank scsi
Your code is work fine.
And after I type.. webalizer
it's show me..
fw9x2.png

It seem everything work fine right?!.

But when I click on each domain on http://ip:2222/CMD_WEBALIZER/mydomain.com/index.html to see stats. It's still showing me the same before..

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

Info for Admins: Downloading a new webalizer binary

For this time I think it's must be wait for log exist,Hope no more problem about webalizer.
Thank you very much Mr.scsi..
Best regards. :eek:
 
Stats update daily at midnight. You can run the following commands manually to do an update now.

To fix libpng error:
Code:
rm -rf /usr/local/lib/libpng*

To update stats:
Code:
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d30
 
Last edited:
Back
Top