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.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
closed as too localized by Marco Ceppi♦ Jan 24 '12 at 15:53
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
|
It sounds like you're running apache as root, which is generally a bad idea. ESPECIALLY when you're allowing files to be uploaded. |
|||
|
|
|
This is how to change file permissions https://help.ubuntu.com/community/FilePermissions |
|||||
|