Nginx + PHP FASTCGI FAILS - how to debug ?

Niro nginx-forum at
Tue Jan 12 21:05:44 MSK 2010

I have an Ubuntu 9.10 server on AMAZON EC2 running Nginx +PHP with PHP FASTCGI via port 9000.

The server runs fine for a few minutes and after a few minutes (several thousands of hits in this case) FastCGI dies and Nginx returns 502 Error.

Nginx log shows 2010/01/12 16:49:24  1093#0: *9965 connect() failed (111: Connection refused) while connecting to upstream, client:, server: localhost, request: "GET /data.php?data=7781 HTTP/1.1", upstream: "fastcgi://", host: "", referrer: ""

How can I debug what is causing FastCGI to die ?

Posted at Nginx Forum:,40332,40332#msg-40332

More information about the nginx mailing list