Hi. When I try to write data to an sqlite file via lighttpd and php I get the error: "Unable to open database file" When I write the data directly using $ /usr/lib/cgi-bin/php5 sqlite-test.php it works fine. Also, php works with lighttpd when not writing to sqlite. I've done some research and put the line extension=sqlite.so into php.ini, but still no joy. |
Which user is the lighttpd daemon running as? It might not have any write permissions to the directory the SQLite file is kept in, or the SQLite file, itself.
Did you restart lighttpd after changing php.ini?