Index: [Article Count Order] [Thread]

Date:  Sun, 19 Jul 2009 14:33:40 +0200
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:15828] Re: php and apache errors
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200907191433.40939.bq (at mark) solarspeed.net>
In-Reply-To:  <BC479EA5A935467ABFBDA56291D9B788@raqware>
References:  <BC479EA5A935467ABFBDA56291D9B788@raqware>
X-Mail-Count: 15828

Hi Gerald,

> Since yum update, php5 and mysql5 upgrade - not sure which may have caused
> get this error in cl
>
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/mysql.so' -
> /usr/local/lib/php/extensions/mysql.so: cannot open shared object file: No
> such file or directory in Unknown on line 0
> PHP 5.2.5 (cli) (built: Nov 15 2007 19:17:35)

In order for PHP to be able to communicate with MySQL, PHP has to be compiled 
against the matching MySQL version. PHP5 usually has a dynamic mysql.so 
library, which usually is loaded at startup based on the PHP configuration as 
defined in php.ini

Your custom PHP tries to load /usr/local/lib/php/extensions/mysql.so for this, 
but can't find it ("No such file or directory"). This may be because your 
custom mysql.so is missing, or the mysql.so requires additional libraries 
which are not present.

Check if /usr/local/lib/php/extensions/mysql.so is present and if it is not, 
you may want to locate it or reinstall your custom PHP5.

If /usr/local/lib/php/extensions/mysql.so is present, run ...

ldd /usr/local/lib/php/extensions/mysql.so

... to get an idea what libraries mysql.so itself is looking for. That may 
give some pointers about which libraries may be missing.

-- 
With best regards,

Michael Stauber