问题描述
我下载了CakePHP并把它放在我的www目录中。我启用了mod重写和所有这一切,并改变了我的文档根。但我仍然得到许可拒绝我的apache错误日志中的错误,因为Cake不能 require
从其他目录的文件。它几乎就像我需要chmod每个目录到 777
为了使这项工作。我知道这是不正确的,但有人可以告诉我,如果我没有正确安装或CHMOD什么。
I downloaded CakePHP and put it in my www directory. I enabled mod-rewrite and all that and changed my document root. But I still get permission denied errors in my apache error log because Cake can't require
the files from other directories. It's almost as if I need to chmod every single directory to 777
in order to make this work. I know that's not right but can someone tell me if I did not install it correctly or what to CHMOD. Because so far it's literally every folder I'm going through CHMODing right now.
推荐答案
尝试
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
这篇关于CakePHP chmod问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!