Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我在 UBUNTU 的本地主机中配置了 LAMP,我使我所有的 php 文件只能由我读取、写入。但是当从浏览器访问时它只显示一个空白页面,我检查了我的 apache 错误日志,我看到它处理脚本的权限被拒绝。在将所有 php 文件的权限更改为全球可读后,该网站似乎工作正常。任何想法,我该如何解决这个问题。
找出哪个用户正在运行 apache(“www”、“apache”或“www-data”等):
然后发出:
chown www:www /home/path/to/your/php/files
从而使它们属于 apache(不是你/root/world)