LinuxCommandLibrary

a2dismod

disable an Apache2 module

TLDR

Disable a module

$ sudo a2dismod [module]
copy
Don't show informative messages
$ sudo a2dismod -q [module]
copy
Force disable a module and cascade disable all modules that depend on it
$ sudo a2dismod -f [module]
copy
Disable a module and purge all traces from the internal state database
$ sudo a2dismod -p [module]
copy

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
Cascade disable all modules that depend on the specified module
-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. Using -f to force disable a module will also disable all dependent modules, which may break your Apache configuration.

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

> TERMINAL_GEAR

Curated for the Linux community

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

Lenovo Gen 13 ThinkPad X1 Carbon Touchscreen Laptop with Intel Ultra 7 265U Processor, 14" WUXGA 100% sRGB, 32GB DDR5 RAM, 1TB NVMe Performance SSD, FHD+ IR+ RGB Camera, and Windows 11 Pro

$1,589.00
KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

KIWITATA 2X Classic SNES USB Controller for PC Gamings, Retro SNES Wired USB Game Emulator Controller for Windows XP 7 8 11 Mac Raspberry Pi

$16.99
Raspberry Pi 5 8GB

Raspberry Pi 5 8GB

$134.50