Apache is a modular system in a sense that its functionality could be extended by using modules. A module could be installed into the system and Apche would then be coufigured to load the module during its startup.

Some of the mostly used modules are PHP which is to enable support for hosting PHP applications and SSL which is to provide encrypted traffic.

Apache modules could be enabled and disabled where and when required.

Steps to enable or disable Apache modules:

  1. Install required Apache module if not not already installed.
  2. Check if desired module is already loaded or enabled.
  3. Enable module.
  4. Restart Apache
  5. Check if module is now enabled.
    $ apachectl -M
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message
    Loaded Modules:
     core_module (static)
     so_module (static)
     watchdog_module (static)
     http_module (static)
     log_config_module (static)
     logio_module (static)
     version_module (static)
     unixd_module (static)
     access_compat_module (shared)
     alias_module (shared)
     auth_basic_module (shared)
     authn_core_module (shared)
     authn_file_module (shared)
     authz_core_module (shared)
     authz_host_module (shared)
     authz_user_module (shared)
     autoindex_module (shared)
     deflate_module (shared)
     dir_module (shared)
     env_module (shared)
     filter_module (shared)
     mime_module (shared)
     mpm_event_module (shared)
     negotiation_module (shared)
     proxy_module (shared)
     proxy_http_module (shared)
     reqtimeout_module (shared)
     setenvif_module (shared)
     status_module (shared)

Guide compatibility:

Operating System
Ubuntu 16.04 LTS (Xenial Xerus)
Ubuntu 16.10 (Yakkety Yak)
Ubuntu 17.04 (Zesty Zapus)
Ubuntu 17.10 (Artful Aardvark)
Ubuntu 18.04 LTS (Bionic Beaver)
Ubuntu 18.10 (Cosmic Cuttlefish)
Ubuntu 19.04 (Disco Dingo)
Discuss the article:

Comment anonymously. Login not required.