I have a setup with two small servers running nginx serving as proxy and a number of Apache+mod_php beefy servers. I am thinking on going over to PHP-FPM. Can I configure nginx to use a number of FastCGI servers? Or PHP-FPM itself to use workers on different machines? Or do I need to run nginx on the workers?
Nginx + PHP-FPM farm
clusternginxphp-fpm
Related Topic
- Nginx vs Apache & mod_php for PHP and php+fpm vs fastcgi
- Nginx – Apache2, FastCGI, PHP-FPM, APC on virtualmin panel with nginx front end reverse proxy
- NGINX + PHP FPM connect() failed (110: Connection timed out) while connecting to upstream
- Why is php-fpm running as nobody
- Nginx and PHP-FPM – Fixing ‘Primary Script Unknown’ Error
- Nginx – File issue with NGinx & PHP-FPM on separate servers
Best Answer
no you can run 1 nginx machine and many php-fpm machines.
Then in your locaction