Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm using nginx and spawnf-cgi with apc and memcache enabled.I'm getting 502 bad gate way on browser and this error on error log.

2013/01/07 06:55:46 [error] 90799#0: *53 upstream prematurely closed connection while reading response header from upstream, client: a.b.c.d, server: www.mysite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgi.sock:", host: "www.mysite.com"
share|improve this question
1  
Did you ever resolve this? I have run into the same issue. –  Abe Miessler Mar 7 '13 at 18:57

1 Answer 1

up vote 0 down vote accepted

It was related to the version of PHP. I have used latest version of nginx and little old version of PHP.The issue has been fixed by updating PHP to latest version.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.