If you run a cPanel server and need to decide how PHP should run, pick PHP-FPM unless you have a documented reason not to. A PHP handler is the piece that passes each web request from Apache to the PHP interpreter, and MultiPHP Manager still offers five of them. PHP-FPM (FastCGI Process Manager) keeps a pool of PHP workers running for each account, under that account’s own user. The older choices stay mainly for compatibility. DSO loads PHP straight into Apache as the module mod_php, so every site runs as the same Apache user. suPHP starts a fresh PHP process for each request as the account owner, which isolates sites but is slow. CGI works the same way without the user switch, and plain FastCGI is the earlier, simpler version of what PHP-FPM does. Below you can check which handler your server uses today and plan the switch to PHP-FPM, including the extra step a DSO server needs.
What’s happening
Each handler is a different mechanism for Apache to hand a PHP request off to a PHP interpreter. DSO (mod_php) loads PHP into Apache’s address space, runs as the Apache user, requires prefork MPM, lowest latency, no per-account isolation. suPHP spawns a PHP process per request as the account user, decent isolation, very slow. CGI is the suPHP shape without the suid wrapper, even slower. FastCGI keeps a small pool of PHP processes alive per account, modest memory use, runs as the account user via suexec. PHP-FPM is FastCGI’s modern successor with a proper pool manager, status endpoint, per-pool tuning, and graceful reloads. In 2026, PHP-FPM is the answer unless you have a documented reason otherwise.
How to verify
Confirm the handler in play server-wide and per-account:
whmapi1 php_get_system_default_handler
whmapi1 php_get_handlers
cat /etc/cpanel/ea4/cpanel-multiphp-config.json 2>/dev/null
ps aux | grep -E "php-fpm|suphp|httpd.*php" | head
If whmapi1 php_get_system_default_handler returns dso, the server is running on a 2010-era handler choice and almost certainly should migrate.
The fix
- If the server is on DSO: a migration to PHP-FPM means switching the MPM from prefork to event in parallel. Plan for a maintenance window. Save an EA4 profile beforehand.
- If the server is on suPHP or CGI: the migration to PHP-FPM is straightforward — set the handler in WHM > MultiPHP Manager > Apache MPM and PHP Handler. Apache restarts; PHP-FPM pools generate automatically per account.
- If the server is on FastCGI: PHP-FPM is a small upgrade, mostly for the status endpoint and graceful reload. Same UI change, similar restart, minimal risk.
- After the switch, confirm:
whmapi1 php_get_system_default_handlerreturnsfpm,systemctl status ea-php82-php-fpmis active, and each account inwhmapi1 php_get_vhost_versionsshows an FPM line. - Re-test every site after the change. Edge cases: an
.htaccess<IfModule mod_php5.c>block that was load-bearing under DSO is now dead code. Cleanup is optional but recommended. - Save the new EA4 profile so the handler choice is captured in the profile JSON.
For environments where a handler migration is a project rather than a one-line change, Stack Harbor sequences DSO-to-FPM migrations under cPanel server administration.