1

我在尝试在 Apache Httpd 服务器上部署基于 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 行 [2013 年 4 月 6 日星期六 14:49:03] [错误] [客户端 ::1] PHP 警告:require_once(/home/tarun/scripts/yii-1.1. 13/framework/yii.php):无法打开流:第 12 行 /var/www/hellouttarakhand.com/index.php 中的权限被拒绝

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

我已将 chmod 777 赋予 yii 根文件夹并执行以下命令

chcon -Rv --type=httpd_user_content_rw_t /home/tarun/scripts/yii-1.1.13/

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

任何指针将不胜感激。

4

0 回答 0