Tuning PHP-FPM in cPanel: Balancing Worker Persistence Against RAM Limits
PHP-FPM in cPanel speeds up PHP execution, but persistent workers consume RAM even when idle. Learn how to size pm.max_children per domain without triggering the OOM killer.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
PHP-FPM in cPanel speeds up PHP execution, but persistent workers consume RAM even when idle. Learn how to size pm.max_children per domain without triggering the OOM killer.
mod_php forces every Apache connection to carry a full PHP interpreter. Switching to the Event MPM with PHP-FPM decouples them — here's why it matters, how to wire it up, and what breaks.
Learn how to enable PHP OPcache with a production‑ready php.ini block, verify it is working, and avoid common pitfalls that erase its performance benefits.
Use cPanel MultiPHP Manager with per-domain PHP-FPM to isolate noisy tenants, run different PHP versions per domain, and verify assignments safely without a server-wide upgrade.
How to point a single cPanel domain at a different PHP version than the server default using MultiPHP Manager — including extension checks, cron/CLI pitfalls, verification steps, and rollback.
Slow pages, high CPU, or stale code after deploys often trace back to OPcache. A diagnostic guide with a cause table, ordered checks, targeted fixes, and verification steps.
Apache 2.4's MPM choice controls concurrency, HTTP/2 support, and how you must run PHP. Compare event, worker, and prefork, then migrate to event + PHP-FPM and validate it.
Stop letting idle keep-alive connections choke your Apache server. Learn how to switch from the legacy prefork MPM to the event MPM and integrate PHP-FPM for high-concurrency scalability.
cPanel MultiPHP Manager assigns per-domain PHP versions with PHP-FPM pools. This guide covers routing mechanism, step-by-step PHP 8.2 setup, FPM tuning, and common mistakes like .htaccess conflicts and EOL PHP pins.