Is it safe to assume, that nothing gets broken after enabling an apache module? For example, I want to enable mod_headers
on production server, but I'm afraid it can break something, perhaps because it can interact with other modules or because of any other reason?
1 Answer
Your assumption that loading Apache modules will not break anything is wrong. A simple counterexample would be:
<IfModule module_safe>
# Break things for fun and profit.
</IfModule>
Assuming that module_safe
is perfectly fine, your configuration can still change on Loading that module.
mod_security
might break a web application with the default rules. Your config may have existing but currently-ignored<IfModule>
calls for the new module that result in a bad config. Enabling mod_php's PHP7 might break your site if it was written for PHP5. etc. etc. etc.