Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find what MPM model Apache is using in Linux (worker, prefork or event)

Tags:

apache

apache2

Where I can get information about what kind of MPM Apache is using in my Linux system?

like image 643
zim32 Avatar asked Jun 03 '11 09:06

zim32


2 Answers

httpd -V 

then look for the Server MPM line.

Example:

# httpd -V Server version: Apache/2.2.15 (Unix) Server built:   Aug  2 2013 08:02:15 Server's Module Magic Number: 20051115:25 Server loaded:  APR 1.3.9, APR-Util 1.3.9 Compiled using: APR 1.3.9, APR-Util 1.3.9 Architecture:   64-bit Server MPM:     Prefork   threaded:     no     forked:     yes (variable process count) Server compiled with....  -D APACHE_MPM_DIR="server/mpm/prefork" 
like image 172
Shatiz Avatar answered Oct 12 '22 01:10

Shatiz


noticed the previous answers don't mention apachectl !

[dlam@some-ubuntu-box~] $ apachectl -V | grep -i mpm

Server MPM: event

--

[dlam@some-fedora-box:~] $ httpd -V | grep -i mpm

Server MPM: Prefork

like image 31
David Lam Avatar answered Oct 12 '22 02:10

David Lam