Hack 79. Display the modules inside Apache

by Ramesh

Display the modules compiled inside Apache

  1. # httpd -l
  2.  
  3. Compiled in modules:
  4. core.c
  5. prefork.c
  6. http_core.c
  7. mod_so.c

Display both static and dynamic module loaded by Apache

When you pass option -l, to httpd, it will display only the static modules. Passing option -M, will display both static and shared modules as shown below.

  1. # httpd –M
  2.  
  3. Loaded Modules:
  4. core_module (static)
  5. mpm_prefork_module (static)
  6. http_module (static)
  7. so_module (static)
  8. auth_basic_module (shared)
  9. auth_digest_module (shared)
  10. authn_file_module (shared)
  11. authn_alias_module (shared)
  12. Syntax OK