我下载了 CakePHP 并将其放在我的 www 目录中。我启用了 mod-rewrite 和所有这些并更改了我的文档根目录。但是我仍然在我的 apache 错误日志中收到权限被拒绝的错误,因为 Cake 不能require从其他目录获取文件。就好像我需要将每个目录都修改为 chmod777以使其工作。我知道这是不对的,但有人可以告诉我是我没有正确安装它还是 CHMOD。因为到目前为止,它实际上是我现在正在使用 CHMODing 的每个文件夹。
尝试
chown -R <webserver_user> <cake_dir> #set the owner of your cake dir recursively to your webserver
chmod -R 755 <cake_dir> #set the permissions recursively
你可以得到网络服务器用户
ps -aux | grep apache #or whatever your web server is
| 归档时间: | 
 | 
| 查看次数: | 3650 次 | 
| 最近记录: |