DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-08-28 21:34:05

GaMerZ
Member
Registered: 2008-08-28
Posts: 6

PHP Error With MYSQL [Unable to load dynamic library]

Hi All,

I managed to set up PHP and MYSQL, both of them run properly when the are independent. I followed the instructions from forre listed in here http://81.216.140.39/dns-323/mysql_and_php/. I even got the php.ini file from there.

But when I try to run phpMyAdmin, I got the following error in my PHP error_log (I set the settings in php.ini to make it log)

[29-Aug-2008 02:26:17] PHP Warning: PHP Startup: Unable to load dynamic library '/mnt/HD_a2/ffp/lib/php/extensions/no-debug-non-zts-20060613/mysql.so' - File not found in Unknown on line 0

I can 100% confirm that mysql.so is 100% in /mnt/HD_a2/ffp/lib/php/extensions/no-debug-non-zts-20060613/.

Any ideas?

Thanks in advanced smile

Offline

 

#2 2008-08-28 22:44:11

GaMerZ
Member
Registered: 2008-08-28
Posts: 6

Re: PHP Error With MYSQL [Unable to load dynamic library]

Just a heads up, apparently the path is 100% right because it can load other .so files like

mbstring.so, pdo.so, sqlite.so, pdo_sqlite.so, zlib.so

And these 3 .so files can't be loaded

gd.so, pdo_mysql.so, mysql.so

Any ideas?

Offline

 

#3 2008-08-29 01:46:11

jagcos
Member
From: CADIZ, Spain
Registered: 2008-08-25
Posts: 5

Re: PHP Error With MYSQL [Unable to load dynamic library]

GaMerZ wrote:

Just a heads up, apparently the path is 100% right because it can load other .so files like

mbstring.so, pdo.so, sqlite.so, pdo_sqlite.so, zlib.so

And these 3 .so files can't be loaded

gd.so, pdo_mysql.so, mysql.so

Any ideas?

I had the same problem.

the extensions mysql.so and pdo_mysql.so call to library libmysqlclient.so.16, but the file in /mnt/HD_a2/ffp/lib/mysql is libmysqlclient.so.15

I copied the file with .15 extension to a new file with extension .16:

root@CH3SNAS:/mnt/HD_a2/ffp/lib/mysql# cp libmysqlclient.so.15 libmysqlclient.so.16

I also copied to /mnt/HD_a2/ffp/lib

To use the extension gd.so you need to install the packages libpng-1.2.29-1.tgz and libjpeg-6b-1.tgz from fonz

finally dont forget restart lighttpd

/ffp/start/lighttpd.sh restart

and OLE!!!!,  all works fine.

Sorry my spanglish


CH3SNAS firmware 1.03 - 2 x 320GB WD - funplug 0.5 -PHP + mysql
Pinnacle SC200 UPnP

Offline

 

#4 2008-08-29 09:03:48

GaMerZ
Member
Registered: 2008-08-28
Posts: 6

Re: PHP Error With MYSQL [Unable to load dynamic library]

Thanks mate, I will go back and try.

Offline

 

#5 2008-08-29 14:53:33

GaMerZ
Member
Registered: 2008-08-28
Posts: 6

Re: PHP Error With MYSQL [Unable to load dynamic library]

Hi jagcos,

I tested and the MYSQL works but the GD doesn't. I installed libpng and libjpeg, any more packages i should try?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB