thinkphp5 Warning: require(): open_basedir restriction in effect.第一种方法:修改nginx配置在fastcgi.conf中fastcgi_param PHP_ADMIN_VALUE "open_basedir=/www/wwwroot/www_dutuwang_net/public/:/tmp/:/proc/"; 中的/www/wwwroot/www_dutuwang_net/public/ 改成/www/wwwroot/ 就可以了,同时注释掉php.ini中的open_basedir;第二种方法(最后我也是使用的这种方法):直接修改网站设置,网站目录里的防跨站攻击,取消打勾,重启网站thinkphp启动报错解决方法...