Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 1.79 KB

File metadata and controls

57 lines (31 loc) · 1.79 KB

TAGLINE

disable an Apache2 module

TLDR

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]

SYNOPSIS

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

DESCRIPTION

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.

PARAMETERS

-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

CAVEATS

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.

HISTORY

Created as part of the Apache2 package for Debian GNU/Linux. The manual page was authored by Daniel Stone and dates to October 2006.

SEE ALSO

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