Home >Backend Development >PHP Tutorial >Get started with PHP-FPM

Get started with PHP-FPM

hzc
hzcforward
2020-06-04 10:17:541910browse

PHP-FPM: PHP FastCGI Process Manager

is software used to manage the PHP process pool and is used to receive and process requests from web servers (Ngnix, Apache).

PHP-FPM will create a main process (usually run as the root user in the operating system) to control when and how to forward HTTP requests to one or more child processes for processing.

PHP-FPM main process also controls when to create and destroy PHP child processes.

Two key configurations

emergency_restart_threshold = 10

Within a specified period of time, if the number of failed PHP-FPM child processes exceeds this value, the main process will be restarted gracefully.

emergency_restart_interval = 1m

Set the time span of the first parameter configuration

Configure the process pool

References

php-fpm.conf

Related references: php中文网

The above is the detailed content of Get started with PHP-FPM. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete