我确信这有一个众所周知的答案,但我似乎无法找到它.
如何创建用户的PHP脚本(例如,在~user / public_html中),作为所有者而不是(例如)www-data运行?
假设Apache,Linux和PHP 5.
一种选择是使用
suPHP.
原文链接:https://www.f2er.com/php/139177.htmlhttp://www.suphp.org/DocumentationView.html?file=apache/INSTALL
The suPHP Apache module together with
suPHP itself provides an easy way to
run PHP scripts with different users
on the same server.It provides security,because the PHP scripts are not run with the rights of the webserver’s user.