Page 1 of 1

Mysql as a PHP DSO

Posted: Fri Sep 18, 2009 12:45 pm
by SpecialK
I have a server that is running live (in process of turning it into a dev server but need some stuff off it first) so we don't want to recompile php to break anything.

On the new server we have the dynamic extensions of mysql.so and mysqli.so
I haven't been able to find anything about the details of building one myself, so copied them over to the old server. On the current server, it doesn't have MySQL configured with php. MySQL is installed on the machine but was being used on a now unused service. The intention is to use MySQL database on a remote server.

I have added the lines to the php.ini

Code: Select all

 
extension=mysql.so
extension=mysqli.so
 
There already is another dynamic extension loaded on this machine, and it shows up with phpinfo() although neither of these do. A restart of apache doesn't seem to allow these to load. Restarting the server is not an option.

Any ideas what to do so we can load mysql support via extensions?

Re: Mysql as a PHP DSO

Posted: Fri Sep 18, 2009 1:39 pm
by SpecialK
As an update, found the error log (which was in some random directory, but that is a different issue)

Code: Select all

 
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/mysqli.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0
I've moved a copy of that file to /usr/lib/mysql/ but am still receiving the error