我把网站从一个服务器迁移到另外一个服务器,用宝塔界面配置好后,现在只能打开首页,点击任何其他页面都报404,查看报错日志如下
2018/05/04 09:08:37 [error] 9065#0: *32 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot2/gqybg/wp-content/themes/leisure/functions.php) is not within the allowed path(s): (/www/wwwroot/gqybg/:/tmp/:/proc/) in /www/wwwroot/gqybg/wp-content/themes/leisure/freemius/includes/class-freemius.php on line 847" while reading response header from upstream, client: 27.212.92.41, server: www.gqybg.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-54.sock:", host: "www.gqybg.com"
2018/05/04 09:08:39 [error] 9065#0: *37 open() "/www/wwwroot/gqybg/resort-2" failed (2: No such file or directory), client: 27.212.92.41, server: www.gqybg.com, request: "GET /resort-2 HTTP/1.1", host: "www.gqybg.com", referrer: "http://www.gqybg.com/"
用的是wordpress,在之前的服务器上没任何问题,都是用的宝塔面板。就是之前的服务器的路径是/www/wwwroot2 现在用的是/www/wwwroot 但是我修改成一样也不行。
请各位大神指教一下
|
|