Home > Article > Backend Development > Get started with PHP-FPM
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!