Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command in Linux to find out which modules are loaded and running in Apache?

share|improve this question

You can use apachectl (or apache2ctl)

apachectl  -D DUMP_MODULES
share|improve this answer
httpd -M

or if you're using Ubuntu try

apache2 -M or apache2ctl -M

share|improve this answer
httpd -l         # for static modules
httpd -M         # for shared modules

Or on Ubuntu:

apache2 -l         # for static modules
apache2 -M         # for shared modules
share|improve this answer

Another way is to use lsof.

lsof -p <apache pid> | grep mod_

This will give you a list of all loaded modules. This not only comes handy for apache, but all other processes to.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.