Introduction
How to change your Apache MPM within the interface or the command line.
Procedure
Within the interface:
- Navigate to WHM » Software » EasyApache 4 and click on Customize on your current profile.
- Uninstall and Install the MPM you desire and press Review to begin the installation/uninstallation process:
Within the command line:
To change your system’s MPM on the command line in EasyApache 4, use the yum shell command. The yum shell command issues several commands in a single transaction.
Warning:
- If you remove an MPM via the command line but do not use the yum shell command, the system will uninstall the ea-apache24 package.
- Do not remove the Apache stack completely.
How to replace the worker MPM with the event MPM
To replace the worker
MPM with the event
MPM, run the following commands:
yum shell
remove ea-apache24-mod_mpm_worker
install ea-apache24-mod_mpm_event
run
How to replace the worker MPM with the prefork MPM
To replace the worker
MPM with the prefork
MPM, run the following commands:
yum shell
remove ea-apache24-mod_mpm_worker
remove ea-apache24-mod_cgid
install ea-apache24-mod_mpm_prefork
install ea-apache24-mod_cgi
run
How to replace the event MPM with the prefork MPM
To replace the event
MPM with the prefork
MPM, run the following commands:
yum shell
remove ea-apache24-mod_mpm_event
remove ea-apache24-mod_cgid
install ea-apache24-mod_mpm_prefork
install ea-apache24-mod_cgi
run
For more information, please read the following documentation: https://docs.cpanel.net/ea4/apache/multi-processing-modules-mpm/#change-your-apache-mpm.