How to Enable & Disable Apache Modules on Ubuntu/Debian
HardReset.InfoJanuary 13, 20266 min319 views
7 connectionsΒ·8 entities in this videoβManaging Apache Modules on Linux
- π‘ This guide demonstrates how to manage Apache modules on Ubuntu and Debian Linux distributions using terminal commands.
- β οΈ Ensure Apache 2 is installed; a separate video is available for installation instructions.
Checking Apache Service Status
- π To check if Apache 2 is active, use the command:
sudo systemctl status apache2. - π If Apache is stopped or disabled, you can start and enable it with:
sudo systemctl start apache2andsudo systemctl enable apache2.
Listing Available and Enabled Modules
- π All available modules are located in
/etc/apache2/mods-available/. - π Enabled modules are represented by symbolic links in
/etc/apache2/mods-enabled/.
Enabling and Disabling Modules
- β
To enable a module, use the command:
sudo a2enmod <module_name>(e.g.,sudo a2enmod rewrite). - β To disable a module, use the command:
sudo a2dismod <module_name>(e.g.,sudo a2dismod rewrite). - π After enabling or disabling a module, restart Apache for changes to take effect:
sudo systemctl restart apache2.
Verifying Module Status
- π You can verify active modules by running:
apachectl -M. - π οΈ The
a2enmodanda2dismodcommands work by creating or removing symbolic links in themods-enableddirectory, pointing to the module files inmods-available.
Knowledge graph8 entities Β· 7 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
8 entities
Chapters2 moments
Key Moments
Transcript21 segments
Full Transcript
Topics11 themes
Whatβs Discussed
Apache 2UbuntuDebianLinuxApache Modulesa2enmoda2dismodsystemctlapachectlTerminal CommandsWeb Server Configuration
Smart Objects8 Β· 7 links
ProductsΒ· 3
ConceptsΒ· 3
LocationsΒ· 2