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
now, both is installed, but if i try to execute my php-script which opens a sqlite3-database there is an error:
Quote:
Fatal error: Uncaught exception 'PDOException' with message 'safe_mode/open_basedir prohibits opening ' in /var/www/cgi-bin/Database.php:7 Stack trace: #0 /var/www/cgi-bin/Database.php(7): PDO->__construct('sqlite:') #1 /var/www/cgi-bin/Get.php(30): GetDb() #2 {main} thrown in /var/www/cgi-bin/Database.php on line 7
|
database.php is used in Get.php with "include 'Database.php'";
and there's a function, which opens the database:
Code:
return new PDO("sqlite:/var/www/cgi-bin/Database.sqlite3");
i changed the path much times, but it never worked.
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