7

亚马逊 Linux 最新

PHP 5.4.19 (cli)(构建时间:2013 年 9 月 3 日 23:19:23)

nginx版本:nginx/1.2.9

安装的 PHP-FPM:PHP 5.4.19 (fpm-fcgi)(内置:2013 年 9 月 3 日 23:22:01)

phpinfo() 正在工作

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/消息

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

我对 Nginx 和 FastCGI 没有丰富的经验,所以我需要你的帮助。你有什么想法?提前致谢

4

4 回答 4

8

似乎 PHP 正在尝试将会话数据写入磁盘中实际上不可写的目录中,即/var/lib/php/session.

感谢迈克尔·汉普顿

于 2013-09-23T18:44:48.060 回答
1

似乎有很多事情会导致这种情况,但是如果您正在运行 Magento 网站,还请检查最近是否更改了购物车规则并查看此相关帖子。这就是我的解决方案。

于 2016-11-29T03:04:15.883 回答
1

问题是 php 无法将会话写入文件,但它不一定位于/var/lib/php/session 您可以通过使用检查和更改它session_save_path

于 2016-04-15T04:59:27.580 回答
0

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

于 2013-09-23T02:47:47.677 回答