vensch Posted July 12, 2008 Share Posted July 12, 2008 Hello All, Briefly, this is what I am trying to do a. Manipulate/create a SQLite database via a set of PHP scripts. b. The scripts are in a directory one level below my server root directory. c. To store the db files I have designated a directory one level above the server root. d. All of this on an Apache server running on Linux. The problem I run into is that I get this error SQLSTATE[HY000] [14] unable to open database file I am pretty sure that there is an issue with ownership and permissions here but I am not quite what the precise problem might be. Here are some of the things I have tried but to no avail a. Change the ownership of the PHP scripts and/or the SQLite db file - to Apache from webuser b. Change the ownership of the DB directory - to Apache from webuser c. Upload the DB file to the directory so the script does not have to create it the first time round. d. Change the ownership of the DB file after the uplaod - to Apache form webuser webuser I should explain defaults to the website URL (less .cc extension) on my server. I would be much appreciate any help. Link to comment https://forums.phpfreaks.com/topic/114406-permissions-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.