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

I've got a bunch of modules installed in Apache2, enabled at compile-time. The command httpd -M gives me:

 core_module (static)
 authn_file_module (static)
 auth_basic_module (static)
 include_module (static)
 filter_module (static)
 deflate_module (static)
 ...and so on...

Is there a way to remove any of these static modules, or add static modules? (Although I've got so_module loaded, so I the addition of static modules isn't so necessary. I'd like to know how to remove static modules without recompiling the server, if possible.

share|improve this question
up vote 3 down vote accepted

I don't know of a way to remove them without recompiling but if you do want them gone editing the build spec for your distribution will let you keep the same (presumably) known-good build settings (other than removing a ./configure flag usually) without having to go through trial and error all over again.

Building from SRPMs is usually fairly simple (overview), rebuilding debian-based packages is a little more complicated but still reasonable.

share|improve this answer

If it is static, that means it is compiled in. There is no easy way to add/remove them without recompiling.

share|improve this answer

Your Answer


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.