Recently, I’ve switched some of my web servers that handle large file downloads from spawn-cgi to PHP-FPM. The result is that I can handle more large files with more PHP-CGI processes while my site still loads well even if there’s many concurrent downloads going on.
I am still experimenting with PHP-FPM but it seems like a pretty good way to go as far as handling the PHP-CGI processes.
To do this, you will need to install EPEL & CentALT repositories:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
rpm -Uv
