thanks for your reply!
well, i have installed the following from the 0.9 backports
- php5-cgi_5.0.5-1_mipsel.ipk
- php5-mod-gd_5.0.5-1_mipsel.ipk
- php5-mod-mysql_5.0.5-1_mipsel.ipk
- php5-mod-sqlite_5.0.5-1_mipsel.ipk
and I run lighttpd_1.4.11-2 with lighttpd-mod-cgi_1.4.11-2 (from the packages for 0.9).
and the testing.php is just a sample snipped from the php.net online reference:
<?php
dl('sqlite.so');
if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) {
sqlite_query('CREATE TABLE foo (bar varchar(10))');
sqlite_query("INSERT INTO foo VALUES ('fnord')");
$result = sqlite_query('select bar from foo');
var_dump(sqlite_fetch_array($result));
} else {
die ($sqliteerror);
}
?>
When I call the php script I also get the following on the command line:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/mysql.so' - File not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/sqlite.so' - File not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - File not found in Unknown on line 0
As I wrote before, loading of these extensions is also definded in the php.ini:
extension_dir = "/usr/lib/php"
extension=mysql.so
extension=sqlite.so
extension=gd.so
Basically I just need the sqlite extension. I've just installed the others to see if its a sqlite-only problem.
And: Do I need to install anything else for sqlite (from the php manual I would say no)?
update:
as others seem to have similar problems, can one try to recompile php5 and its extensions please? (if I knew how to write the Makefile I would have done it already)
(Last edited by thengineer on 4 Mar 2007, 22:28)