Pivotal Knowledge Base

Follow

Checking the modules that are compiled into Apache HTTP Server and Pivotal Web Server (2009272)

Checking the modules that are compiled into Apache HTTP Server and Pivotal Web Server (2009272)

Purpose

This article provides information on how to identify modules that are compiled statically into your Web server. You can use the binary that you have installed to check this information.

Resolution

To identify the modules that are compiled statically in your Web server, use the server binary with the -l (lowercase L) option.
 
For example, in Apache HTTP Server (downloaded from the ASF and compiled), run this command:
 
$ httpd -list
 
You see an output similar to:

Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

Note: Dynamically loaded modules are added at run-time and are not listed.

With Pivotal Web Server, there are separate binaries for the Worker and prefork MPMs. Also, in PWS, a library path must be set to execute the binary.
 
To know the statically compiled modules in PWS, run these commands in the appropriate path for the version you are using, such as /path-of-webserver/httpd-2.2/bin:
 
$ . ./envvars
$ ./httpd.worker -l
 
You see an output similar to:

Compiled in modules:
  core.c
  mod_version.c
  worker.c
  http_core.c
  mod_so.c

 

©Pivotal 2013

Comments

Powered by Zendesk