PHP and fcgid session download progress

I am using Apache2.2 / mod_fcgid / php5.4.3 and the download process does not appear in the session. I read that the php session download loading function will not work if php is loaded using fastcgi. It's true? If so, what are the options for getting downloads when using fastcgi?

+4
source share
2 answers

" [mod_fcgi] reads the entire body of the request from the client before sending it to the application. "

You should try using Nginx and PHP-FPM that support Fast File Download , where your PHP code can run until the full request is received by Nginx.

+2
source

Instead of mod_fcgi, you can switch to mod_fastcgi , which specifies a parameter:

-flush (none) Force write to client because data is received from application. By default, mod_fastcgi buffers data to free the application as quickly as possible.

0
source

All Articles