Overview
PHP-FPM (FastCGI Process Manager) is a PHP FastCGI implementation commonly used with web servers such as NGINX and Apache configurations that support FastCGI. It manages worker processes that execute PHP requests.
Important concepts
PHP-FPM uses pools, process-management settings, listen sockets, user and group permissions, and configurable limits. Pool settings influence how requests are handled and how much memory and process capacity a site can consume.
Operational guidance
Choose process limits based on available memory and measured traffic rather than copying arbitrary values. Protect the FPM status endpoint, keep socket permissions restrictive, and monitor slow requests and worker saturation.
Troubleshooting
When a site returns gateway errors, check whether the FPM service is running, whether the web server points to the correct socket or port, and whether pool permissions and resource limits are appropriate.