Jump to content

Permissions Problem?


vensch

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.