Index: [Article Count Order] [Thread]

Date:  Sun, 19 Jul 2009 09:38:57 -0400
From:  "Stephanie Sullivan" <bq (at mark) aviaweb.com>
Subject:  [coba-e:15830] Re: php and apache errors
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <014501ca0876$465a3300$d30e9900$@com>
In-Reply-To:  <5CB06FEDCC5D466386B93E454D30875E@raqware>
References:  <BC479EA5A935467ABFBDA56291D9B788 (at mark) raqware> <200907191433.40939.bq (at mark) solarspeed.net> <5CB06FEDCC5D466386B93E454D30875E (at mark) raqware>
X-Mail-Count: 15830


> -----Original Message-----
> From: Gerald Waugh [mailto:gwaugh (at mark) frontstreetnetworks.com]
> Sent: Sunday, July 19, 2009 9:19 AM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:15829] Re: php and apache errors
> 
> 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
Gerald,

In  my fuzzy memory the order of install for Brian's packages was mysql5, then php5 for mysql5. If you did it the other way around I'd uninstall the php from the GUI, then re-install it. If anyone remembers otherwise, please chirp-in. YMMV.

	-Stephanie