Using NGINX with PHP-FPM
Apache has long been considered the only option for serving the PHP websites because the mod_php Apache module makes integrating PHP directly into the web server an easy task. With
PHP-FPM being accepted into PHP's core, there is now an alternative bundled with the PHP distribution. PHP-FPM is a way of running PHP under a FastCGI server. The PHP-FPM master process takes care of spawning workers, adapting to site usage, and restarting sub-processes when necessary. It communicates with other services using the FastCGI protocol. You can learn more about PHP-FPM itself at http://php.net/manual/en/install.fpm.php.
NGINX has a fastcgi module, which is capable of communicating not only with PHP-FPM, but also with any FastCGI-compliant ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access