king

Thinkphp 网站打开提示Warning: require(): open_basedir restriction in effect另一种解决方法

king linux 2018-06-23 15215浏览 0

Thinkphp网站打开报错如下:

 Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/123.com/heikeji/simplewind/thinkphp/base.php) is not within the allowed path(s): (/www/wwwroot/123.com/heikeji/public/:/tmp/:/proc/) in /www/wwwroot/123.com/heikeji/public/index.php on line 40 Warning: require(/www/wwwroot/123.com/heikeji/simplewind/thinkphp/base.php): failed to open stream: Operation not permitted in /www/wwwroot/123.com/heikeji/public/index.php on line 40 Fatal error: require(): Failed opening required '/www/wwwroot/123.com/heikeji/public/../simplewind/thinkphp/base.php' (include_path='.:/www/server/php/54/lib/php') in /www/wwwroot/123.com/heikeji/public/index.php on line 40


解决方法:

如果朋友们使用的环境是宝塔

宝塔部署网站后会自动生成一个.user.ini的文件,修改下里面的内容更改为根目录即可解决~

继续浏览有关 Thinkphp 的文章
发表评论