signal 11 linux,Nginx + php-fpm on Amazon Linux = exited on signal 11

问题

Amazon Linux lastest

PHP 5.4.19 (cli) (built: Sep 3 2013 23:19:23)

nginx version: nginx/1.2.9

installed PHP-FPM: PHP 5.4.19 (fpm-fcgi) (built: Sep 3 2013 23:22:01)

phpinfo() is working

pma.nginx.conf:

server {

listen 80;

server_name pma.my.server;

root /usr/share/phpmyadmin;

index index.php;

charset UTF-8;

access_log /var/log/myserver/pma.access.log;

error_log /var/log/myserver/pma.error.log;

location ~ \.php$ {

include fastcgi_params;

fastcgi_pass php-fpm;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin/$fastcgi_script_name;

fastcgi_param DOCUMENT_ROOT /usr/share/phpmyadmin/;

fastcgi_intercept_errors on;

}

}

/var/log/myserver/pma.error.log:

[error] 21374#0: *13 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 1.0.255.202, server: pma.my.server, request: "GET /js/get_image.js.php?theme=pmahomme HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pma.my.server", referrer: "http://pma.my.server/"

/var/log/php-fpm/error.log

NOTICE: fpm is running, pid 21598

NOTICE: ready to handle connections

WARNING: [pool www] child 21600 exited on signal 11 (SIGSEGV) after 12.862493 seconds from start

NOTICE: [pool www] child 21614 started

WARNING: [pool www] child 21602 exited on signal 11 (SIGSEGV) after 13.768522 seconds from start

NOTICE: [pool www] child 21617 started

/var/log/messages

kernel: [12499.658777] php-fpm[21603]: segfault at 0 ip 00000000005c5a39 sp 00007fffb44d6d60 error 4 in php-fpm[400000+31c000]

I don't have big experience with Nginx and FastCGI, so I need your help. Do you have any ideas? Thanks in advance

回答1:

it appears that PHP is trying to write session data to disk in a directory that's not actually writable, namely /var/lib/php/session.

Thanks to Michael Hampton

回答2:

The problem is php unable to write session to file but it not necessarily located in /var/lib/php/session

You can check and change it by using session_save_path

回答3:

It appears there are a lot of things that can cause this, but if you are running a Magento website also check to see if any shopping cart rules were changed recently and see this relevant post. That was the solution for me.

回答4:

The code in this file /js/get_image.js.php cause segment fault.

You can use core dump to view the backtrace.

Nginx Core dump

来源:https://stackoverflow.com/questions/18947495/nginx-php-fpm-on-amazon-linux-exited-on-signal-11

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值