Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从PHP-FPM获取此NGINX 203错误的其余部分_Php_Nginx_Fpm - Fatal编程技术网

如何从PHP-FPM获取此NGINX 203错误的其余部分

如何从PHP-FPM获取此NGINX 203错误的其余部分,php,nginx,fpm,Php,Nginx,Fpm,我一直从NGINX收到一个203错误,可能需要一些帮助来解决它。 当我转到…时,我得到这个错误。。。等 这个网站运作得非常好 [error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/p

我一直从NGINX收到一个203错误,可能需要一些帮助来解决它。 当我转到…时,我得到这个错误。。。等 这个网站运作得非常好

[error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
2019/10/25 13:34:35 [error] 60#60: *203 FastCGI sent in stderr: "PHP message:" while reading response header from upstream, client: ::1, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost", referrer: "http://localhost/"
形态:

我想这可能与此有关:
. 但我不完全理解。

< P>一个HTTP代理位于客户机和服务器(Origin)之间。在某些情况下,HTTP代理可能在响应到达客户端之前对其进行更改


那么,您真的是舒尔了,您的nginx服务器出现了什么错误?

请尝试在服务器名称下方添加此错误:
error\u log/var/log/nginx/error.log error,重新启动nginx,然后查看错误日志是否提供了更多信息。添加并重新启动nginx,无更改。然而,我注意到我的路线不起作用。配置中一定有问题……这一行不能让它开始工作,但它应该能在错误日志中写入更好的错误消息。检查日志以查看是否提供了更多信息。错误实际上来自PHP,通过stderr发出,并由PHP fpm转发到Nginx。您可以尝试将PHP配置为将错误写入自己的错误日志文件,而不是将错误写入stderr。检查
php.ini
文件和指令,例如
log\u errors
error\u log
。我有一些小错误。但被接受的答案回答了我实际提出的问题。谢谢
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /mnt/c/Users/me/src/site;

        # Add index.php to the list if you are using PHP
        index index.php index.html index.htm index.nginx-debian.html;


        server_name _;


location / {
                try_files $uri $uri/ /index.php$is_args$args;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;

                # Make sure unix socket path matches PHP-FPM configured path above
                fastcgi_pass unix:/run/php/php7.2-fpm.sock;

                # Prevent ERR_INCOMPLETE_CHUNKED_ENCODING when browser hangs on response
                fastcgi_buffering off;
        }

}