亚马逊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 /日志/消息
kernel: [12499.658777] php-fpm[21603]: segfault at 0 ip 00000000005c5a39 sp 00007fffb44d6d60 error 4 in php-fpm[400000+31c000]
我没有Nginx和FastCGI的丰富经验,所以我需要你的帮助。你有什么想法?提前致谢
答案 0 :(得分:8)
似乎PHP试图将会话数据写入一个实际上不可写的目录,即/var/lib/php/session
。
答案 1 :(得分:1)
问题是php无法写会话到文件,但它不一定位于/var/lib/php/session
您可以使用session_save_path
答案 2 :(得分:1)
似乎有很多事情可能导致这种情况,但如果您正在运行Magento网站,请检查最近是否更改了任何购物车规则,并查看此relevant post。那是我的解决方案。
答案 3 :(得分:0)