Apache is the most popular web server, it is Open Source and modular. Multi-Processing Modules (MPM) in Apache decides how Apache listens to the network and handles the incoming requests. Apache have many MPM Modules (Multi-Processing Modules), the most popular among them are Prefork, worker, and Event. You can only activate one Apache MPM at any time.
The most popular MPMs available on Linux servers are
- Prefork
- Worker
- Event
To find out which MPM you are using
On CentOS, run
[root@server22 ~]# httpd -M | grep mpm mpm_worker_module (shared) [root@server22 ~]#
On Ubuntu
root@server1:~# a2query -M prefork root@server1:~#
Or
root@server1:~# a2query -m | grep mpm mpm_prefork (enabled by maintainer script) root@server1:~#
Or
root@server1:~# apachectl -M | grep mpm mpm_prefork_module (shared) root@server1:~#
You can also find this information from the Apache Status page provided by mod_info
To enable mod_info, in httpd.conf, add
SetHandler server-info
Now visit
http://your-server-ip/server-info
See Apache
Leave a Reply