Checking the modules that are compiled into Apache HTTP Server and Pivotal Web Server
search cancel

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

book

Article ID: 293948

calendar_today

Updated On:

Products

Pivotal Web Server

Issue/Introduction

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