maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   php pdo and phpize5 (https://talk.maemo.org/showthread.php?t=66281)

CharlesM 2010-11-27 18:11

php pdo and phpize5
 
not sure if anyone can help but i simply want to use php5 and sqlite3

pdo.so does not seem to be installed and so i've downloaded php5-dev

and the source for pdo with a view that i would make it.

however my phpize is a sym link to a alternatives phpize which is another symlink to phpize5 which does not exit.

i think phpize is just a shell script but cannot find it anywhere.

any help would be gretfully appreciated.

kureyon 2010-11-27 19:44

Re: php pdo and phpize5
 
I think the php packages are broken. Eg I have these installed:

dpkg -l | grep php
Code:

php-pear    5.2.6-6maemo5 PEAR - PHP Extension and Application Repository
php5        5.2.6-6maemo5 server-side, HTML-embedded scripting language (metapackage)
php5-cgi    5.2.6-6maemo5 server-side, HTML-embedded scripting language (CGI binary)
php5-cli    5.2.6-6maemo5 command-line interpreter for the php5 scripting language
php5-common 5.2.6-6maemo5 Common files for packages built from the php5 source
php5-gd    5.2.6-6maemo5 GD module for php5
php5-mysql  5.2.6-6maemo5 MySQL module for php5
php5-sqlite 5.2.6-6maemo5 SQLite module for php5

However the php5-gd, php5-mysql, php5-sqlite don't actually provide the relevant modules, instead they only provide the ini file to enable module but not the module itself:

dpkg -L php5-sqlite
Code:

/.
/etc
/etc/php5
/etc/php5/conf.d
/etc/php5/conf.d/sqlite.ini
/etc/php5/conf.d/pdo_sqlite.ini
/usr
/usr/share
/usr/share/doc
/usr/share/doc/php5-sqlite

And "php -i" gives:
Code:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysql.so' - /usr/lib/php5/20060613+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysqli.so' - /usr/lib/php5/20060613+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo.so' - /usr/lib/php5/20060613+lfs/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_mysql.so' - /usr/lib/php5/20060613+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_sqlite.so' - /usr/lib/php5/20060613+lfs/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/sqlite.so' - /usr/lib/php5/20060613+lfs/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0


antezz 2010-11-27 19:50

Re: php pdo and phpize5
 
http://smiley128.wordpress.com/2010/...ttpd-and-php5/ This is what i had to do to get PHP working.

kureyon 2010-11-28 12:31

Re: php pdo and phpize5
 
@antezz from what I can see your fix simply addresses the that fact that lighttpd is looking in the "wrong" place for the php executable. It does not address the fact that the sqlite, mysql, etc modules are missing :)

CharlesM 2010-12-02 06:02

Re: php pdo and phpize5
 
Quote:

Originally Posted by kureyon (Post 884933)
@antezz from what I can see your fix simply addresses the that fact that lighttpd is looking in the "wrong" place for the php executable. It does not address the fact that the sqlite, mysql, etc modules are missing :)

exactly! while the pakages seem a little broken i can get the interpreter to run but it just complains about missing pdo shared objects each time!

if someone has been able to compile them i would be gratefull of is someone could send me phpize5 then i could try?

many thanks

Daneel 2011-05-09 03:03

Re: php pdo and phpize5
 
I got lighttpd, php and mysql running separately but i can't get php to connect with mysql because i seem to be having the same problem.

Code:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysql.so' - /usr/lib/php5/20060613+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/mysqli.so' - /usr/lib/php5/20060613+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo.so' - /usr/lib/php5/20060613+lfs/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_mysql.so' - /usr/lib/php5/20060613+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.6-6maemo5 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Jul  6 2010 10:35:13)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Has anyone figured this out yet or found a alternative to run mysql, php and a web server on device that is not easy debian?

-edit-

Apparently, there is no php for maemo compiled with mysql support just now so the only working option is easy debian

-edit2-

Just install easy debian/easy chroot and this image http://talk.maemo.org/showthread.php?t=72818

It works great.


All times are GMT. The time now is 09:22.

vBulletin® Version 3.8.8