Get started with PHP-FPM

hzc
Release: 2023-04-08 18:20:01
forward
1893 people have browsed it

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
Copy after login

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
Copy after login

Set the time span of the first parameter configuration

Configure the process pool

References

php-fpm.conf
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template