CakePHP chmod 问题

Dav*_*vid 2 php cakephp chmod

我下载了 CakePHP 并将其放在我的 www 目录中。我启用了 mod-rewrite 和所有这些并更改了我的文档根目录。但是我仍然在我的 apache 错误日志中收到权限被拒绝的错误,因为 Cake 不能require从其他目录获取文件。就好像我需要将每个目录都修改为 chmod777以使其工作。我知道这是不对的,但有人可以告诉我是我没有正确安装它还是 CHMOD。因为到目前为止,它实际上是我现在正在使用 CHMODing 的每个文件夹。

Gal*_*len 5

尝试

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
Run Code Online (Sandbox Code Playgroud)

你可以得到网络服务器用户

ps -aux | grep apache #or whatever your web server is
Run Code Online (Sandbox Code Playgroud)