Skip to main content

php-fpm - page 2

Practical php-fpm guides from the GetPageSpeed engineering team: configuration, performance tuning and security for production Linux servers.

22 articles

NGINX

NGINX Timeout Directives: Complete Configuration Guide

Master all NGINX timeout directives including proxy_read_timeout, client_body_timeout, keepalive_timeout, and send_timeout. Learn when to use each, production-ready values, and how to diagnose timeout issues.

NGINX

NGINX client_max_body_size: Fix 413 Errors

Learn how to fix the NGINX 413 Request Entity Too Large error by configuring client_max_body_size. This complete guide covers syntax, size formats, context inheritance,…

NGINX

504 Gateway Timeout NGINX: How to Fix It

Stop copy-pasting timeout fixes. Learn which NGINX directive actually causes 504 errors and how to fix it properly—whether you're proxying to Varnish, Node.js, PHP-FPM,…

NGINX

NGINX FastCGI Keepalive: Persistent PHP-FPM Connections

Learn how to configure persistent FastCGI connections between NGINX and PHP-FPM using fastcgi_keep_conn and upstream keepalive directives. Includes production-ready configurations, PHP-FPM tuning tips, and…

Server Setup

How to log and fix slow PHP requests

How to troubleshot slow PHP requests using PHP-FPM slow log facility. Common reasons for a slow PHP request and ways to fix it