I'm getting this error from /var/log/messages
on my FreeBSD box. I'm using nginx
and spawn-fcgi
with memcache
and apc
modules enabled.
upstream prematurely closed connection while reading response header from upstream,
client HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgi.sock:", host:
It was related to the version of PHP. I have used latest version of nginx and slightly old version of PHP. The issue has been fixed by updating PHP to latest version.