Nginx + PHP-FPM 502错误网关 [英] Nginx + PHP-FPM 502 Bad Gateway
问题描述
我从Nginx上获得了一行PHP代码上的502 Bad Gateway
,该PHP代码在我程序的其他位置($this->provider = new OAuthProvider();
)正常运行,并且以前运行良好.这是我在Nginx错误日志中获取的每个502消息:
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:对等方重置连接),同时从上游读取响应标头
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:
[WARNING] [pool www]子项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 或错误ID#18138
maybe http://pecl.php.net/bugs/bug.php?id=17689 or bug id #18138
这篇关于Nginx + PHP-FPM 502错误网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!