A2ENMOD(8)

πŸ“¦
version 2.4.69 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

✨ A2ENMOD β€” the enable/disable apache2 module situation ✨

ok so bestie, we're in the A2ENMOD(8) corner of the System Manager's Manual, and this is literally your glow-up guide for turning apache2 modules on and off. two commands, one vibe. let's go πŸŽ€


🌸 NAME 🌸

a2enmod, a2dismod β€” enable or disable an apache2 module πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

a2enmod [-q|--quiet] [-m|--maintmode] [ module ]

a2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [ module ]

like. look at her. two little lines of pure power ✨


πŸ’– DESCRIPTION πŸ’–

ok so this manual page documents briefly the a2enmod and a2dismod commands. briefly. we're not writing a thesis here, we're giving you the lore πŸ’«

a2enmod is a script that enables the specified module within the apache2 configuration. it does this by creating symlinks within /etc/apache2/mods-enabled. iconic behaviour tbh.

likewise, a2dismod disables a module by removing those symlinks. bye bestie πŸ‘‹

and here's the comforting part: it is not an error to enable a module which is already enabled, or to disable one which is already disabled. no drama. no scolding. she's chill like that 🫢

⭐ lowkey important note: many modules have, in addition to a .load file, an associated .conf file. enabling the module puts the configuration directives in the .conf file as directives into the main server context of apache2. so like, it's not just a symlink girlie, it's also moving the actual config directives into the main character slot. main character energy fr.

✨ OPTIONS ✨

  • -q, --quiet β€” don't show informative messages. she's silent. she's mysterious. she's not narrating her every move πŸ’…
  • -f, --force β€” when disabling a module, also cascade disables all modules that depends on it. yes. it takes the whole friend group down with it. rip to the dependents 😭
  • -m, --maintmode β€” enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. this switch should not be used by end users. like, seriously, this one is not for you. this is backstage. do not touch 🚫
  • -p, --purge β€” when disabling a module, purge all traces of the module in the internal state data base. she's not just leaving the group chat, she's deleting the entire chat history, the photos, the receipts. all of it. πŸ§ΉπŸ’€

🌈 EXIT STATUS 🌈

a2enmod and a2dismod exit with status:

  1. 0 if all modules are processed successfully β€” slay βœ…
  2. 1 if errors occur β€” oop 😭
  3. 2 if an invalid option was used β€” bestie. read the options list. πŸ’€

πŸŽ€ EXAMPLES πŸŽ€

a2enmod imagemap
a2dismod mime_magic

enables the mod_imagemap module, and disables the mod_mime_magic module. one in, one out. balance. harmony. the ecosystem thrives 🌸


πŸ“ FILES πŸ“

  • /etc/apache2/mods-available β€” directory with files giving information on available modules. this is the closet where all the fits live πŸ‘—
  • /etc/apache2/mods-enabled β€” directory with links to the files in mods-available for enabled modules. and this is what she's actually wearing today ✨

πŸ‘‘ SEE ALSO πŸ‘‘

apache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8).

the whole friend group. go say hi 🫢


πŸ’œ AUTHOR πŸ’œ

this manual page was written by Daniel Stone <daniel@sfarc.net> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. thank you Daniel for your service, we love you, no cap πŸ™πŸ’–


🧚 and that's the whole page bestie!! dated 12 October 2006, from the System Manager's Manual, and yes we're still talking about it in the group chat in the year of our lord. go enable a module. go disable a module. live your truth. periodt. πŸ’…βœ¨