php运行提示Warning require() open_basedir restriction in effect. File _爱资料
爱资料 网 欢迎您的到来,我们在这里提供了免费网页模板、编程资料、开发资料、开发软件、在线工具
爱资料 > 编程资料 > PHP > php运行提示Warning require() open_basedir restriction in effect. File

php运行提示Warning require() open_basedir restriction in effect. File

作者:apizl 更新:2018-05-30 09:20:50 阅读:159次

部署完PHP后访问网站项目提示如下:


Warning: require(): open_basedir restriction in effect. File(D:\project\cmh_yii2\vendor\autoload.php) is not within the allowed path(s): (/www/wwwroot/cmh_sq/advanced-my/) in D:\project\cmh_yii2\backend\web\index.php on line 6


Warning: require(D:\project\cmh_yii2\vendor\autoload.php): failed to open stream: Operation not permitted in D:\project\cmh_yii2\backend\web\index.php on line 6


Fatal error: require(): Failed opening required 'D:\project\cmh_yii2\backend\web/../../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\project\cmh_yii2\backend\web\index.php on line 6

无法正常运行 这个时候需要php.ini中配置open_basedir 的目录 可以让php操作的路径,然后重启下PHP服务就能正常运行了。

php运行提示Warning require()  open_basedir restriction in effect. File

文章由爱资料原创本文地址:https://www.apizl.com/archives/view-134207-1.html,转载请以链接形式标明本文地址!
分类:php  
发布时间:2018-05-30 09:23:32
分享:
0