How does PHP-FPM work?

11

Well, I have a question regarding the PHP-FPM concept. From what I understand through the documentation, is it a PHP module that manages requests to the server to avoid high loads, or am I wrong? How can it benefit in performance?

    
asked by anonymous 25.05.2017 / 16:32

1 answer

16

PHP-FPM is a process manager for managing the FastCGI SAPI (Server API) in PHP.

PHP-FPM is a service, not a module. This service runs completely independent of the web server in a separate process and is supported by any FastCGI (Fast Common Gateway Interface) .

PHP-FPM is considerably faster than other methods of processing php scripts, and is also scalable, ie it is possible to build clusters and expand the ability of php to receive requests. See more at What's the difference between using PHP as Apache module, CGI, FastCGI and command line? .

With PHP-FPM, the elements and instructions invoked are stored in memory, that is, the implementation of a server-level cache to be reused directly if the request is executed again (See also

07.09.2017 / 21:25