php Yii 框架安装到linux无法启动问题

log日志,

PHP Warning:  require_once(/var/www/html/vast2013/service/../yii/framework/yii.php): failed to open stream: Permission denied in /var/www/html/vast2013/service/index.php on line 9, referer: http://***/vast2013/

 

对灯起誓,这个文件一定是存在的,而且可以访问。一怒之下,把整个yii目录设置成了777,还是不行。

 

参考 http://www.yiiframework.com/forum/index.php/topic/24961-failed-to-open-stream-permission-denied-first-time-user-cant-get-first-project-working/

 

原来是系统启用了 SELinux,坑!

解决方案:

chcon -Rv --type=httpd_user_content_rw_t /var/www/html/yii/ 

 

 

posted on 2013-06-15 19:00  大宝pku  阅读(1765)  评论(0编辑  收藏  举报

导航