php change uploaded file owner

Posted by shantanu on Ask Ubuntu See other posts from Ask Ubuntu or by shantanu
Published on 2011-11-14T15:54:30Z Indexed on 2011/11/14 18:12 UTC
Read the original article Hit count: 295

Filed under:
|

I installed php5 , mysql and apache2 without any error. Everything is working fine. apache2's Root directory is /var/www (permission is 775). Problem is when i upload a file using php code it change the owner of uploaded file (as root). So i can not read this file from another code without changing owner of file manually. Is there is anyway to solve this problem? Should i add user to php group (how)? Thanks in advance.

© Ask Ubuntu or respective owner

Related posts about apache

Related posts about php