开发者

files are uploaded as user apache

he开发者_JS百科llo today i have a problem

files are uploaded as user apache

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜