PHP and Permissions

Posted by Moe on Stack Overflow See other posts from Stack Overflow or by Moe
Published on 2010-06-08T00:38:18Z Indexed on 2010/06/08 0:42 UTC
Read the original article Hit count: 348

Filed under:
|
|

Hi,

I recently moved my website to a new host and now am experiencing some broken code..

I have an uploading script that is now returning this:

move_uploaded_file() failed to open stream: Permission denied in *..

I've set the upload directory to 777 which worked fine, but my script is needed to have top level permissions..

(As the script itself sets permission to directories, does lots of copying etc)

Is there a way in apache I can set the PHP script to the owner of all the folders on my server?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about apache