Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)
...snip...
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
add comment

2 Answers

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
add comment

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
add comment

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.