disable an Apache2 module
Disable a module
sudo a2dismod [module]
Don't show informative messages
sudo a2dismod -q [module]
Force disable a module even if it does not exist or is already disabled
sudo a2dismod -f [module]
Disable a module and purge all traces from the internal state database
sudo a2dismod -p [module]
a2dismod [-q|--quiet] [-f|--force] [-m|--maintmode] [-p|--purge] [module]
a2dismod is a Debian-specific utility that disables Apache2 modules by removing symbolic links from /etc/apache2/mods-enabled. It manages both .load files and associated .conf files for each module.
The tool works alongside a2enmod, which enables modules. After disabling a module, Apache must be restarted or reloaded for changes to take effect.
-q, --quiet
Don't show informative messages
-f, --force
Do not complain if the specified module does not exist or is already disabled
-m, --maintmode
Enables maintainer mode; the program invocation is effectuated automatically by a maintainer script
-p, --purge
When disabling a module, purge all traces from the internal state database
This utility is Debian-specific and not available on other Linux distributions (also works on Ubuntu and derivatives). After disabling a module, you must restart or reload Apache for changes to take effect.
Created as part of the Apache2 package for Debian GNU/Linux. The manual page was authored by Daniel Stone and dates to October 2006.
a2enmod(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8), apache2ctl(8)