How to enable and customize PHP-FPM directives/pool for a domain or server wide :: cPanel

What is PHP-FPM?

PHP FastCGI Process Manager (PHP-FPM) is an alternative FastCGI daemon for PHP that makes a website capable of handling strenuous loads. By setting specific amounts of resources, it even allows a host to process a domain’s requests. To accomplish this, the PHP-FPM maintains “pools” (workers available to respond to PHP requests) where these “pools” of workers allow the website to handle more requests than it normally could.

PHP-FPM is faster than traditional CGI-based methods such as SUPHP for multi-user PHP environments. It does not overload a system’s memory with PHP from Apache processes like ruid2+php-dso does. This method is useful when a user receives extra traffic that requires resources to process it. For example, your website may receive a spike in traffic after a TV show features it or is linked from a popular website.

Continue reading…