Centos | Yiiframework |许可被拒绝

Centos | Yiiframework |许可被拒绝,yii,centos,Yii,Centos,我在尝试在ApacheHttpD服务器上部署基于Yii的应用程序时遇到权限拒绝错误,以下是相同的日志 require_once():需要打开失败 “/home/tarun/scripts/yii-1.1.13/framework/yii.php” (include_path='。:/usr/share/pear:/usr/share/php)在 /var/www/hellouttarakhand.com/index.php第12行[2006年4月6日星期六] 14:49:03 2013][err

我在尝试在ApacheHttpD服务器上部署基于Yii的应用程序时遇到权限拒绝错误,以下是相同的日志

require_once():需要打开失败 “/home/tarun/scripts/yii-1.1.13/framework/yii.php” (include_path='。:/usr/share/pear:/usr/share/php)在 /var/www/hellouttarakhand.com/index.php第12行[2006年4月6日星期六] 14:49:03 2013][error][client::1]PHP警告: require_once(/home/tarun/scripts/yii-1.1.13/framework/yii.php):失败 打开流:中的权限被拒绝 /var/www/hellouttarakhand.com/index.php,第12行

由于上述错误,应用程序页面始终显示为空白,因为脚本无法执行

我已经将chmod777提供给了yii根文件夹,并执行了以下命令

chcon-Rv--type=httpd\u user\u content\u rw\t /home/tarun/scripts/yii-1.1.13/

但仍然没有运气与这个错误


任何提示都将不胜感激。

请尝试
chown-R webserveruser/home/tarun/scripts/yii-1.1.13/
,不要忘记资产/和受保护的/运行时文件夹也必须是可写的。@Tim如果您成功地“chmod-R 777”,您使用什么“chown”都无关紧要