Apache MPM (Multi-Processing Modules) are Apache modules for creating child processes in Apache. There are many Apache MPM available, Each of them works in his own way. If you are using default Apache installation, Apache will use Prefork MPM by default.
Event MPM is launched with many improvements from worker MP. I prefer to use the Event MPM which is an improvement over the Worker MPM. Event MPM is that Event has a dedicated thread which handles all Keep Alive connections and requests.
This article will help you to Disable Prefork MPM and Enable Event MPM on Apache 2.4 running on your Linux operating system.
Enable Event MPM in Apache
First edit Apache MPM configuration file in your favorite text editor.
# vim /etc/httpd/conf.modules.d/00-mpm.conf
Comment LoadModule line for mpm_prefork_module, mpm_worker_module and Un comment LoadModule line for mpm_event_module in configuration as per showing below.
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so #LoadModule mpm_worker_module modules/mod_mpm_worker.so
LoadModule mpm_event_module modules/mod_mpm_event.so
After making above changes just restart your Apache servers.
# systemctl restart httpd
Check Active MPM in Apache
Now you have successfully enabled Event MPM in your Apache server. To verify current MPM enabled on your server use following command.
[[email protected] ~]# httpd -V | grep MPM Server