Index: [Article Count Order] [Thread]

Date:  Sun, 19 Jul 2009 08:18:58 -0500
From:  "Gerald Waugh" <gwaugh (at mark) frontstreetnetworks.com>
Subject:  [coba-e:15829] Re: php and apache errors
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <5CB06FEDCC5D466386B93E454D30875E@raqware>
References:  <BC479EA5A935467ABFBDA56291D9B788 (at mark) raqware> <200907191433.40939.bq (at mark) solarspeed.net>
X-Mail-Count: 15829

Michael Stauber wrote;
> 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.
>
> -- 
Michael

thanks for the response.
this server uses the NuOnce packages;
     BQ-5102R-MySQL-5.0.45.pkg
     BQ-5102R-PHP-5.2.5-mysql5.pkg
But for some reason when first installed the php5.25 must not have install 
correctly
When i ran phpinfo it showed php-5.1x
So I removed and reinstalled BQ-5102R-PHP-5.2.5-mysql5.pkg that seems to fix 
it.
Odd, though, I don't get the error anymore but there still is no 
/usr/local/lib/php/extensions/mysql.so
running updatedb and locate mysql.so
   /usr/lib/php4/mysql.so
   /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so

Gerald