Hello All,
I have a Dedicated Server with some 50 domains hosted on it as individual Accounts. I am trying to give write permission to the user of the first domain to a folder on the second users web directory. Here is the layout:
Domain1.com
-------------
Admin User: domain1
Web Path: /home/domain1/public_html/
Domain2.com
-------------
Admin User: domain2
Web Path: /home/domain2/public_html/
Upload Path: /home/domain2/public_html/uploads/
I have set the permission for the "uploads" folder which is on domain2.com to 777, but it still gives me this error when a PHP script from domain1.com tries to upload an image file to domain2.com:
I have already tried giving "domain1" user ownership of the "uploads" folder on domain2.com using the following command which made no difference:Code:Warning: move_uploaded_file(/home/domain2/public_html/uploads/201207221737071.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/domain1/public_html/content.php on line 103
Any help would be much appreciated.Code:chown -Rv domain1 /home/domain2/public_html/uploads/
Thanks,
Pete


LinkBack URL
About LinkBacks
Reply With Quote