How to disable PHP output buffering
nginx-forum at nginx.us
Wed Feb 12 09:41:50 UTC 2014
I know this has been asked before, but I could not find a definitive answer.
I tried different solutions, nothing worked.
I have a PHP script that has to do time intensive operations and provide a
status update from time to time. No way around it.
I built a sample PHP script:
I have output_buffering = Off in php.ini
In nginx I have
location ~ \.php$
try_files $uri =404;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffers 128 1k; # up to 1k + 128 * 1k
(yeah, I put everything and the kitchen sink)
Server is Ubuntu 13.04, nginx 1.5.9, php 5.4.9
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247451,247451#msg-247451
More information about the nginx