Portal Home > Knowledgebase > Articles Database > Upload picture to another user/group directory
Upload picture to another user/group directory
Posted by datamerc, 05-23-2010, 09:55 PM |
Hi,
Is there a workaround (running suPHP) to allow an upload script on one domain to upload a picture to another domain (located on the same machine)?
Here's what I've tried with so far no success...
- safe_mode off and open_basedir off.
- chown and/or chgrp the directory being written to.
- chown and/or chgrp the PHP file that is uploading the image.
Thanks in advance!
|
Posted by YUPAPA, 05-24-2010, 12:01 PM |
Normally you just need to chgrp the upload folder and make it 770. That should work. So if you are running the CGI script as user 'uploader' where uploader's falls in his own group named 'uploader', then chgrp the folder to uploader.
|
Posted by datamerc, 05-24-2010, 12:44 PM |
Thanks - I'll give that a try, although I may just resort to rewriting the PHP pages to allow the upload to take place under each client's domain.
|
Add to Favourites Print this Article
Also Read
24hostingnow (Views: 497)