php5-cgi

spawn-fcgi dying after a number of connections

I recently setup a new ubuntu machine, with wordpress, spawn-fcgi and nginx. Every morning, I'd try to see my blog and I got a 502 error Bad Gateway error. I tried finding some kind of log of why php-cgi died but couldn't find anything. I run spawn-fcgi like so: sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f...

Getting a file pointer from file descriptor

In PHP 5.2.3, "fdopen" was used to read/write to a file descriptor that's opened by another application. fdopen(<fileDescriptorId>,"rw"); //It worked fine with PHP 5.2.3 After upgrading PHP to 5.3.2, it's throwing "undefined reference to 'fdopen' function". Please suggest whats the replacement for this in PHP 5.3.2 or any workaround...