提示file_exists(): open_basedir restriction in effect. File完美解决方案 ![![image.png](https://upload-images.jianshu.io/upload_images/6954572-daba4438bc245be4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)](../images/screenshot_1606454395457.png) [TOC] 进入宝塔或者进入你当前的PHP配置文件开启open_basedir即可, 宝塔位置-网站-对应网站设置-网站目录里面去掉钩子即为开启即可 ![![image.png](https://upload-images.jianshu.io/upload_images/6954572-fce35a7642dfe81a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ](../images/screenshot_1606454410867.png)