Web Servers on Unix and Linux - File permission issue - php can't write files

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > March 2007 > File permission issue - php can't write files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author File permission issue - php can't write files
zorro

2007-03-14, 7:19 pm

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?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com