php的phalcon框架502 Bad Gateway错误,nginx环境

发布于 2022-09-01 07:17:41 字数 2071 浏览 27 评论 0

如果是简单的 echo 'hello world'; 的话可以正常访问,使用phalcon的就不行,不知道怎么回事,求助。
php-fpm.log总是出现下面这样的提示:

[16-May-2015 19:08:58] NOTICE: [pool www] child 28875 started
[16-May-2015 19:09:00] WARNING: [pool www] child 28870 exited on signal 11 (SIGSEGV - core dumped) after 3.975894 seconds from start
[16-May-2015 19:09:00] NOTICE: [pool www] child 28878 started
[16-May-2015 19:09:02] WARNING: [pool www] child 28875 exited on signal 11 (SIGSEGV - core dumped) after 4.456202 seconds from start
[16-May-2015 19:09:02] NOTICE: [pool www] child 28880 started
[16-May-2015 19:10:20] WARNING: [pool www] child 28878 exited on signal 11 (SIGSEGV - core dumped) after 80.234199 seconds from start
[16-May-2015 19:10:20] NOTICE: [pool www] child 28896 started
[16-May-2015 19:10:27] WARNING: [pool www] child 28880 exited on signal 11 (SIGSEGV - core dumped) after 84.586972 seconds from start
[16-May-2015 19:10:27] NOTICE: [pool www] child 28902 started
[16-May-2015 19:33:08] WARNING: [pool www] child 28902 exited on signal 11 (SIGSEGV - core dumped) after 1361.414055 seconds from start
[16-May-2015 19:33:08] NOTICE: [pool www] child 29351 started

nginx错误

015/05/16 19:10:27 [error] 27803#0: *214 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.153.1, server: www.codebaa.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fastcgi.socket:", host: "www.codebaa.com", referrer: "http://www.codebaa.com/ajax/test/test"

2015/05/16 19:33:08 [error] 27803#0: *218 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.153.1, server: www.codebaa.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fastcgi.socket:", host: "www.codebaa.com", referrer: "http://www.codebaa.com/ajax/test/test"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拧巴小姐 2022-09-08 07:17:41

是否安装了opcache,先禁用试试。

够运 2022-09-08 07:17:41

我也遇到这个问题,重启php-fpm可以暂时解决,log中也不出现上面那个警告了。但是要不了一天又502,错误日志中又出现这个警告。。。

找到一个这样的回答:child ... exited on signal 11 means PHP is crashing while servicing requests. Depending on when in the processing it crashed, this may have no visible impact, or may result in blank pages, aborted transfers, users being mysteriously logged out, etc. Consider updating PHP to the latest point release (5.3.x or 5.4.x) and removing or replacing known problematic extensions such as APC.
也就是说,child ... exited on signal 11代表PHP子进程崩溃了,考虑升级PHP并移除或替换已知的有问题的扩展,例如APC

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文