Skip to main content

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 apache2 and sudo 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 a2enmod and a2dismod commands work by creating or removing symbolic links in the mods-enabled directory, pointing to the module files in mods-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