PHP Warning: is_file(): open_basedir restriction in effect. File(D:\wwwroot\xxx.com\.env) is not within the allowed path(s): (D:/wwwroot/xxx.com/;C:/Windows/Temp/;C:/Temp/;D:/BtSoft/temp/session/) in D:\wwwroot\xxx.com\system\base.php on line 41
请问如何解决?
经过小编的一顿研究,终于解决掉了,记录于此,给自己提个醒,也希望能帮助同样遇到这个问题的朋友。
下面来说说宝塔 open_basedir restriction in effect解决办法。
解决方法:
首先说明,我的环境是 LINUX(CentOS)+宝塔+PHP+MYSQL+Nginx,假如使用Apache,应该也一样
登录宝塔,找到目标网站,打开【设置】,然后找到【网站目录】,然后不要勾选“防跨站攻击”
重新启动PHP,就可以看到网站正常了。
版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:PHP Warning: is_file(): open_basedir restriction in effect. File 宝塔面板 | 外贸心情 | 外贸运营 | 工作经验交流
转载请注明:PHP Warning: is_file(): open_basedir restriction in effect. File 宝塔面板 | 外贸心情 | 外贸运营 | 工作经验交流