File permission issue - php can't write files
Web Server forum
Back To The Forum Home!Search!Private Messaging System

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




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    File permission issue - php can't write files  
zorro


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-07 12:19 AM

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?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register