This guide shows cPanel server admins how to change the Apache MPM (Multi-Processing Module), the part of Apache that decides how it handles many visitors at once. You make the change in EasyApache 4, the WHM tool that installs and manages the Apache and PHP packages on a cPanel server. Many servers still run prefork, the only MPM that works with the older DSO (Dynamic Shared Object) PHP handler, which runs PHP inside Apache itself. Once PHP runs through PHP-FPM (a separate PHP process manager), the event MPM lets Apache keep idle browser connections open (called keep-alive) without tying up a worker for each one. The switch replaces one Apache package with another, so you move off DSO first, provision the new MPM, and then check that everything still works.
What’s happening
The MPM is compiled into Apache as a loadable module: ea-apache24-mpm-event, ea-apache24-mpm-worker, or ea-apache24-mpm-prefork. Exactly one can be loaded at runtime. EasyApache 4 enforces this — picking a new MPM in the UI uninstalls the previous package and installs the new one. The DSO PHP handler requires prefork; FastCGI, FPM, and LSAPI work with any MPM but event is the better fit because it handles keep-alive without burning a worker per connection.
How to verify
Confirm which MPM is loaded and which PHP handler is in use:
apachectl -V | grep MPM
rpm -qa | grep ea-apache24-mpm
whmapi1 php_get_system_default_handler
cat /etc/cpanel/ea4/cpanel-multiphp-config.json 2>/dev/null
If the handler is dso, you cannot switch to event or worker without first switching the handler. Plan that change first.
The fix
- Confirm the current handler is FastCGI, suPHP, or LSAPI. If it is
dso, change the handler first via WHM > MultiPHP Manager > Apache MPM and PHP Handler. Set to FastCGI or PHP-FPM, then test before continuing. - In WHM > EasyApache 4 > Customize current profile, go to Apache MPM, select Event, and Provision. The UI will uninstall the old MPM package and install the new one, then regenerate config.
- After the provision, validate:
apachectl -V | grep MPM, then load-test against a representative vhost. Event MPM tunables (AsyncRequestWorkerFactor,MaxRequestWorkersPerChild) live in/etc/apache2/conf.modules.d/event.conf; cPanel manages this file and overwrites it. - Save the new state as a custom profile so the MPM choice persists across future EasyApache changes.
- Watch for two days. Specifically, watch
mod_status(/whm-server-statusor/server-statusfrom localhost): under event MPM you should see far fewer busy workers at the same request rate, and keep-alive connections should not consume a slot for their lifetime. - If anything in the customer base relies on suexec-per-vhost behaviour that only worked under prefork, that account needs to be migrated to PHP-FPM with its own pool before the MPM change is permanent.
For environments where the MPM switch is part of a broader PHP handler migration, Stack Harbor sequences the changes as part of cPanel/WHM management.