Monthly Archives: April 2014

Limit number of php-cgi processes spawned by nginx

Here’s how to Mine was around here somewhere. File was here sudo nano /usr/bin/php-fastcgi Original file looked something like this. #!/bin/bash /usr/bin/spawn-fcgi -a 127.0.0.1 -p 10005 -u www-data -g www-data -f /usr/bin/php-cgi Added -C argument to enforce a limit. #!/bin/bash

Posted in development