Linux "a2enmod" Command Line Options and Examples
enable or disable an apache2 module

This manual page documents briefly the a2enmod and a2dismod commands. a2enmod is a script that enables the specified module within the apache2 configuration. It does this by creating symlinks within /etc/apache2/mods-enabled.


Usage:

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


    a2dismod [ [-q|--quiet] module]






Command Line Options:

-q
Don't show informative messages.
a2enmod -q ...
-m
Enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. This switchshould not be used by end users.
a2enmod -m ...
-p
When disabling a module, purge all traces of the module in the internal state data base.EXIT STATUSa2enmod and a2dismod exit with status 0 if all modules are processed successfully, 1 if errors occur, 2 if an invalid option wasused.EXAMPLESa2enmod imagemapa2dismod mime_magicEnables the mod_imagemap module, and disables the mod_mime_magic module.FILES/etc/apache2/mods-availableDirectory with files giving information on available modules./etc/apache2/mods-enabledDirectory with links to the files in mods-available for enabled modules.
a2enmod -p ...