BT宝塔面板ThinkPHP Warning: require(): open_basedir restriction in effect错误


BT宝塔面板ThinkPHP Warning: require(): open_basedir restriction in effect错误

是因为根目录设置为public

把根目录里的 .user.ini 里的

open_basedir=/www/wwwroot/demo.xxx.xx/public/:/tmp/:/proc/

修改为

open_basedir=/www/wwwroot/demo.xxx.xx/:/tmp/:/proc/