How do I enable PHP’s flush() with nginx+PHP-FPM?

Posted by abrahamvegh on Server Fault See other posts from Server Fault or by abrahamvegh
Published on 2013-03-18T07:08:22Z Indexed on 2013/06/27 10:23 UTC
Read the original article Hit count: 534

Filed under:
|
|

I’m using nginx with PHP-FPM (APC is installed).

I need PHP’s flush() to work. Is this possible?

Things I’ve tried so far:

  • Disabling all output buffering in php.ini, as well as output compression.
  • Disabling gzip in nginx’s configuration.
  • Setting nginx’s fastcgi_* buffering settings and fastcgi_max_temp_file_size to zero.

I’m sure I must be missing something, since I’ve run across many posts here and elsewhere where people claimed they’ve got it working, but I’m having no luck, it would seem.

© Server Fault or respective owner

Related posts about php

Related posts about nginx