king

Thinkphp 网站打开提示Warning: require(): open_basedir restriction in effect.

king web技术 2018-06-07 3025浏览 0

昨晚有个朋友咨询我们运维同事,说网站打开报错:

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


这个错误是由于lnmp不支持跨目录访问导致的,建议朋友们换成windows系统搭建好php+mysql+iis环境就可以解决问题了~

发表评论