Nginx + PHP-FPM 502 错误网关 [英] Nginx + PHP-FPM 502 Bad Gateway
问题描述
我在一行 PHP 代码上从 Nginx 获得 502 Bad Gateway
,该代码在我程序的其他地方运行良好($this->provider = new OAuthProvider();
),而且以前工作得很好.这是我在每个 502 的 Nginx 错误日志中得到的消息:
I am getting a 502 Bad Gateway
from Nginx on a line of PHP code that is working fine in other places of my program ($this->provider = new OAuthProvider();
), and that have worked fine before. This is the message I get in the Nginx error log for each 502:
recv() 在从上游读取响应头时失败 (104: Connection reset by peer)
recv() failed (104: Connection reset by peer) while reading response header from upstream
在 PHP-FPM 日志中,每个 502 都有一个警告:
In the PHP-FPM log there is a warning for each 502:
[警告] [pool www] child 17427 在 142070.657176 秒后退出信号 11 SIGSEGV
[WARNING] [pool www] child 17427 exited on signal 11 SIGSEGV after 142070.657176 seconds from start
在尝试对 nginx.conf 进行一些更改后,我被卡住了,非常感谢您提供下一步该做什么的任何指示.
After trying a number of changes to the nginx.conf I am stuck and would very much appreciate any pointers of what to do next.
我在 Ubuntu 10.04 上运行 Nginx 0.7.67 和 PHP 5.3.2.
I'm running Nginx 0.7.67 and PHP 5.3.2 on Ubuntu 10.04.
推荐答案
也许 http://pecl.php.net/bugs/bug.php?id=17689 或 bug id #18138
maybe http://pecl.php.net/bugs/bug.php?id=17689 or bug id #18138
这篇关于Nginx + PHP-FPM 502 错误网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!