2

I usually work with Debian/Ubuntu as a basis for Apache and recently learned that commands like a2enmod MOD or a2dismod MOD are Debian-specific.

Is there a global / distro-agnostic way (maybe with some CM like Ansible or another) to enable or disable modules?

All I personally enable is http2, deflate and expires (and I use them all-default).

3
+25

The platform independent way would in general be an adding of the according LoadModule directives to your Apache configuration. What a2enmod does, is linking files with such directives (.load files, plus additional .conf files, if needed) from /etc/apache2/mods-available to /etc/apache2/mods-enabled

  • Hello, I misunderstand why you didn't allow thew line break. The answer seems to me to contain two different passages in one passages. It is an accessibility issue, as I see it, to split it to two passages. Thank you. – JohnDoea Dec 30 '18 at 15:29
0

The platform independent in general is not using platform specific tooling.

  • 1
    Hello poiege, I don't want to use any platform specific tooling. What would be an example or general tooling? Please edit to explain an example. – JohnDoea Dec 31 '18 at 10:29
  • Go docker!!!!11 – poige Dec 31 '18 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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