Reply
Thread Tools
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#1
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.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#2
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
 

The Following User Says Thank You to kureyon For This Useful Post:
antezz's Avatar
Posts: 172 | Thanked: 160 times | Joined on Jan 2010 @ Sweden
#3
http://smiley128.wordpress.com/2010/...ttpd-and-php5/ This is what i had to do to get PHP working.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#4
@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
 
Posts: 44 | Thanked: 11 times | Joined on Oct 2009 @ UK, Manchester
#5
Originally Posted by kureyon View Post
@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's Avatar
Posts: 549 | Thanked: 698 times | Joined on Apr 2010
#6
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.

Last edited by Daneel; 2011-05-10 at 02:31.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:11.