FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction

作者:admin 发布:2020-03-18 浏览:126次
2020/03/18 16:26:51 [error] 30486#0: *682308 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/wwwroot/myblog/backend/web/index.php) is not within the allowed path(s): (/home/wwwroot/www.cnmeiye.net/:/tmp/:/proc/) in Unknown on line 0
PHP message: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Unable to open primary script: /home/wwwroot/myblog/backend/web/index.php (Operation not permitted)" while reading response header from upstream, client:xxx, server: admin.zc0317.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxx.com"

解决方法/usr/local/nginx/conf

vim fastcgi.conf

635488-20180625154043779-671605821.png


注释后重启 nginx,php-fpm (nginx -s reload 不可以),

Comments (0)