Apache/2.4.6 (CentOS 7) – Determine which MPM module is the default and which one is being used

Find which MPM module is the default of your Apache install.

httpd -V


Server MPM: prefork

Find which MPM module is actually being used.

– Make sure the mod_info.so module is enabled in your configuration file (httpd.conf or in /etc/httpd/conf.modules.d/00-base.conf). Also include into your httpd.conf file the following.

SetHandler server-info

– Then execute the following command below to find which MPM module is currently being used.

curl localhost/server-info | grep 'MPM Name'

Change which MPM Module apache is using.

vim /etc/httpd/conf.modules.d/00-mpm.conf

Select which MPM module you wish to use.

#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
Share Button