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/ 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-10-10
  • 2021-04-14
  • 2021-09-10
猜你喜欢
  • 2021-05-17
  • 2021-06-03
  • 2021-08-31
  • 2021-10-28
  • 2022-12-23
  • 2021-07-14
  • 2021-08-06
相关资源
相似解决方案