sqlite with php5 on debian
hello,
i installed boa and php5 on an small arm board with debian lenny. php works great. so i installed sqlite3: Code:
apt-get install sqlite3 php5-sqlite Quote:
and there's a function, which opens the database: Code:
return new PDO("sqlite:/var/www/cgi-bin/Database.sqlite3"); i opened the php.ini and searched for "safe_mode" and "open_basedir". safe_mode is disabled and open_basedir is not defined (so i'ts disabled too). do you know why it doesnt work? best regards toredo |
I would listen to the error message. openbase_dir prevents the file from beeing open. Debian uses two config files one in /etc/php/apache and one in /etc/php/cli. Also you don't have php5-module for apache installed. Hm to be extra sure see which php.ini gets loaded by the script.
Code:
php -r "phpinfo()" | grep "php.ini" If none is loaded use the -c option to php and pass the path to the config file. If this all does not work try to create a new php.ini with only basedir and safe_mode options inside (and turned of of cause ;)) Hope that helps Zhjim P.S. Is the file writable for the user? chown user:user /path/to/db |
Problem with php5 on arm board
Quote:
php version: 5.3.0 sqlite version: 3.6.19 web server: boa Kan |
All times are GMT -5. The time now is 02:07 AM. |