A2ENCONF(8)

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

πŸ’– A2ENCONF β€” enable or disable an apache2 configuration file πŸ’–

okay bestie, welcome to the a2enconf and a2disconf page β€” this is from the System Manager's Manual section 8 (the sysadmin one, not the "random user typing stuff" one) 🫢


✨ NAME ✨

a2enconf, a2disconf β€” besties who turn an apache2 configuration file ON or OFF πŸ’…


✨ SYNOPSIS ✨

a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]

a2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]

like… that's the whole vibe. two little commands, a couple of flags, and a configuration name if you feel like naming names πŸŽ€


✨ DESCRIPTION ✨

so this page is the quick lil' rundown on a2enconf and a2disconf, no cap πŸ“–

a2enconf is a script that enables the configuration file you picked, inside the apache2 configuration. how? it creates symlinks inside /etc/apache2/conf-enabled. slay. πŸ¦‹

and a2disconf? it does the opposite β€” it disables a specific configuration part by removing those symlinks. bye bye πŸ‘‹

and here's the chill part: it is not an error to enable a configuration which is already enabled, or to disable one which is already disabled. no drama, no red text, it just vibes 😌

ngl there's a lil' catch though. Many configuration files may have a dependency to specific modules. Unlike module dependencies, these are not resolved automatically. so like, do not expect the tool to go fetch the modules for you, bestie, it's not your mom 😭

Also, configuration fragments stored in the conf-available directory are considered non-essential or being installed and managed by reverse dependencies (e.g. web scripts). iykyk πŸ’€


✨ OPTIONS ✨

  • -q, --quiet β€” don't show informative messages. it's giving "silent but deadly efficient" 🀫
  • -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. hands off, babe, that's for the package maintainers πŸ™ˆ
  • -p, --purge β€” when disabling a module, purge all traces of the module in the internal state data base. (yes, the original says "module", we report the facts, periodt) 🧹

✨ EXIT STATUS ✨

the receipts, bestie 🧾 β€” a2enconf and a2disconf exit with:

  1. 0 if all configurations are processed successfully βœ…
  2. 1 if errors occur 😭
  3. 2 if an invalid option was used πŸ’€

✨ EXAMPLES ✨

a2enconf security
a2disconf charset

what does that do? it enables Apache security directives stored in the security configuration files, and disables the charset configuration. iconic behavior, honestly πŸ‘‘


✨ FILES ✨

  • /etc/apache2/conf-available β€” directory with files giving information on available configuration files. this is the "the options exist" closet πŸ—„οΈ
  • /etc/apache2/conf-enabled β€” directory with links to the files in conf-available for enabled configuration files. this is the "we actually turned it on" closet, full of symlinks ✨

✨ SEE ALSO ✨

apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8) β€” the whole friend group, go say hi 🫢


✨ AUTHOR ✨

This manual page was written by Arno Toell <debian@toell.net> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. ty for your service, legend πŸ’œ


and that's the whole page, bestie πŸŽ€ this was written down on 14 February 2012, living in the System Manager's Manual section, and it's the version that ships as part of the package itself. mwah πŸ’‹ go enable some confs, you got this πŸ’…βœ¨