files are uploaded as user apache
he开发者_JS百科llo today i have a problem
how can this happen ? everything that is generated from php goes with a user apache. is it php fault ? or its an server fault ? it should be 'ausername' rather then apache.
Thanks for looking in.
Adam Ramadhan
Unless PHP is run through FastCGI with suexec uploaded files or any file created by a PHP script will belong to the user that executed the script, apache in this case. If the server is running mod_php
you can't get around this. Unless you change the user and group that runs the httpd process.
So neither PHP or Apache is at fault, this is how it's configured.
Also, this question belongs to serverfault.com.
精彩评论