当前位置: 代码迷 >> 综合 >> 宝塔Warning: require(): open_basedir restriction in effect解决方案
  详细解决方案

宝塔Warning: require(): open_basedir restriction in effect解决方案

热度:95   发布时间:2023-11-17 02:00:21.0

报错源码

Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/cs.liumy.top/thinkphp/base.php) is not within the allowed path(s): (/www/wwwroot/cs.liumy.top/public/:/tmp/) in /www/wwwroot/cs.liumy.top/public/install.php on line 18Warning: require(/www/wwwroot/cs.liumy.top/thinkphp/base.php): failed to open stream: Operation not permitted in /www/wwwroot/cs.liumy.top/public/install.php on line 18Fatal error: require(): Failed opening required '/www/wwwroot/cs.liumy.top/public/../thinkphp/base.php' (include_path='.:/www/server/php/71/lib/php') in /www/wwwroot/cs.liumy.top/public/install.php on line 18

关闭防跨站攻击(open_basedir),把钩去掉,重启php服务
在这里插入图片描述

  相关解决方案