Httpd How to Find Out which MPM is Being Used

From NovaOrdis Knowledge Base
Revision as of 22:25, 1 January 2017 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Overview

There are two sources of information on the built-in MPM:

httpd -V

Run:

./httpd -V

An example of server compiled with prefork:

./apachectl -V

Server version: Apache/2.2.17 (Unix)
Server built:   Sep  7 2011 12:34:41
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....
...

httpd -l

Once the server has been compiled it is possible to determine with MPM was chosen with:

./httpd -l

An example of server compiled with prefork:

httpd -l

Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_version.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

An example of server compiled with 'worker':