Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move_uploaded_file permissions problem

Status
Not open for further replies.

awingnut

Programmer
Feb 24, 2003
759
US
I have a directory which requires an authenticated user to access. In that directory I have a subdirectory into which I want to place uploaded images. When I try to move_uploaded_file(s) into that directory I get a permissions error. I'm not sure which user is actually doing the write (apache or the authenticated user). I'm guessing the authenticated user based on the error. What I want is my PHP script to be the only way to write to that subdirectory since it does all the necessary validity checking. How do I set up my permissions and <Directory> attributes to make that work? TIA.
 
That was it. I changed the owner to 'apache' and it solved the problem. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top