Warning: include(): open_basedir restriction in effect. File(/www/wwwroot/xxx.com/api/index.php) is not within the allowed path(s): (/www/wwwroot/xxx.com/:/tmp/) in /www/wwwroot/xxx.com/index.php on line 17 Warning: include(/www/wwwroot/xxx.com/api/index.php): failed to open stream: Operation not permitted in /www/wwwroot/xxx.com/index.php on line 17 Warning: include(): Failed opening '/www/wwwroot/xxx.com/api/index.php' for inclusion (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/xxx.com/index.php on line 17 解决方法把宝塔里的防跨站攻击关了就可以了！