Results 1 to 10 of 10

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

  1. #1
    Join Date
    Apr 2012
    Posts
    6

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

    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.

  2. #2
    Join Date
    Aug 2008
    Posts
    4,697
    Install libdb libdb-dev or libdb-devel

  3. #3
    Join Date
    Apr 2012
    Posts
    6
    Quote Originally Posted by scsi View Post
    Install libdb libdb-dev or libdb-devel
    Please help me I'm really new..
    is that
    yum libdb libdb-dev or libdb-devel
    ?!?

  4. #4
    Join Date
    Apr 2012
    Posts
    6
    Quote Originally Posted by webunder View Post
    Please help me I'm really new..
    is that

    ?!?
    I was try
    Install libdb libdb-dev or libdb-devel
    and
    yum libdb libdb-dev or libdb-devel
    and
    yum Install libdb libdb-dev or libdb-devel

    no luck..

  5. #5
    Join Date
    Aug 2008
    Posts
    4,697
    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
    Last edited by scsi; 04-18-2012 at 06:22 AM.

  6. #6
    Join Date
    Apr 2012
    Posts
    6
    I got these..
    /usr/lib64/libdb-4.3.so
    /lib/libdb-4.3.so
    /lib64/libdb-4.3.so

  7. #7
    Join Date
    Apr 2012
    Posts
    6
    Quote Originally Posted by scsi View Post
    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.
    http://image.free.in.th/z/iz/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.

  8. #8
    Join Date
    Aug 2008
    Posts
    4,697
    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 by scsi; 04-18-2012 at 07:25 AM.

  9. #9
    Join Date
    Apr 2012
    Posts
    6

    Thumbs up

    Quote Originally Posted by scsi View Post
    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..
    http://image.free.in.th/z/ie/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.

  10. #10
    Join Date
    Aug 2008
    Posts
    4,697
    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 by scsi; 04-18-2012 at 08:33 AM.

Similar Threads

  1. Replies: 4
    Last Post: 05-08-2012, 02:27 AM
  2. Replies: 4
    Last Post: 02-02-2011, 11:10 AM
  3. Replies: 4
    Last Post: 06-01-2008, 01:05 PM
  4. curl: error while loading shared libraries: libcurl.so.3
    By Drowned in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 02-10-2005, 07:54 PM
  5. Webalizer error - shared lib
    By danfisher in forum General Technical Discussion & Troubleshooting
    Replies: 2
    Last Post: 06-02-2004, 11:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •