|
| Hello,
We recently moved our web site to a new host/server where we're using
PHP (Safe Mode is set to Off in php.ini). Ownership of the files is
attributed to our "ftpuser" who uploaded the files. Problem is our php
scripts which write to files/folders are denied access because of file
permission restrictions. These scripts worked on the old server but
now unless i change permissions to 777 they don't work. In cases where
scripts create new files the owner of the new files becomes "apache".
The question is, should I change the owner of all files to "apache",
or change all chmods to 777, or give apache permission to modify
"ftpuser" files? And what about files that were already on the new
host and have "root" ownership, doesn't php also need access to the
folder where session are saved?
|
|