Tips for fixing common problems….-Webalizer produces: error while loading shared libraries: libgd.so.2

Tips for fixing common problems….-Webalizer produces: error while loading shared libraries: libgd.so.2

When you try run the following, you get:

[root@server]# webalizer
webalizer: error while loading some shared libraries: libgd.so.2: can not open the shared object file: No such file or directory

That means that the program is unable to find the gd library requiring to run it.  You should already have the library, so you just have to tell the binary linker where to find it.

Type the following command:

echo “/usr/local/lib” >> /etc/ld.so.conf
ldconfig

And then try running webalizer again.  The error should be gone.

If you *do not* have the gd library, install it:

yum install gd

Another solution, since custombuild will install it for you, just in a different location than webalizer is looking, is to link it, eg:

ln -s /usr/local/lib/libgd.so.2 /usr/lib/libgd.so.2

 

If there a webalizer is functioning correctly, you must see something similar to:

 

[root@server]# webalizer
Webalizer V2.01-10 (Linux 2.4.21-9.0.1.EL) English
Using logfile STDIN (clf)
Creating output in a current directory
Hostname for reports is ‘es.jbmc-software.com’
History file not found…

 

 

 

 

 

 

 

 

balizer binary

Select the relevant info below and then run the produced command to get a new webalizer binary

As root, run the Following code:

Once you have updated the binary, you can type:

echo “action=tally&value=all” >> /usr/local/directadmin/data/task.queue

Then try to wait a few minutes for the tally to update the stats.

Warning: Illegal offset type in /path/to/somefile.php after php upgrade

Eg:

Warning: Illegal offset type in /var/www/html/phpMyAdmin-2.6.2/libraries/grab_globals.lib.php on line 71

This because of a change in the php.ini.  To get an updated php.ini, run:

cp -f /usr/local/directadmin/customapache/php-4.3.11/php.ini-dist /usr/local/lib/php.ini

(assuming you have upgraded to php 4.3.11)Then restart apache.

Leave a Reply

Your email address will not be published. Required fields are marked *