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 2009-01-03 07:07:35

iazmin
Member
Registered: 2008-09-10
Posts: 55

phhp.ini can't load mysql.so

Hi, I am setting up my php and sql. My php runs perfectly from the lighttpd.conf.

However, the mysql is not loaded. I follow exactly the tutorial provided in http://nas-tweaks.net/CH3SNAS:Tutorials/Mysql

However, when I try to execute the testmysql.php from the browser, it just does not execute as intended.
I check the php.ini by executing:

Code:

php -m

And this is the result:

Code:

PHP Warning:  PHP Startup: Unable to load dynamic library 'www/calendar.so' - Fi
le not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'www/mysql.so' - File
not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'www/pdo_mysql.so' - F
ile not found in Unknown on line 0

I suspect I need to specify the module directory somewhere.
Anyone can enlighten me on this

Offline

 

#2 2009-01-03 08:24:17

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: phhp.ini can't load mysql.so

Solved:
I did not specify the extension module folder directory in line 536 of the php.ini file. It should contain the folder directory which is:

Code:

/ffp/lib/php/extensions/no-debug-non-zts-20060613/

So, now i can run both php and mysql from the lighttpd

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB