Você não precisa ativá-lo.
Os módulos podem ser carregados em tempo de compilação ou dinamicamente na configuração usando a diretiva LoadModule
. Habilitar um módulo usando a2enmod
simplesmente adiciona uma diretiva LoadModule
no diretório mods-enabled
, que por sua vez é incluído pelas seguintes linhas em /etc/apache2/apache2.conf
:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
httpd is a modular server. This implies that only the most basic functionality is included in the core server. Extended features are available through modules which can be loaded into httpd. By default, a base set of modules is included in the server at compile-time. If the server is compiled to use dynamically loaded modules, then modules can be compiled separately and added at any time using the LoadModule directive. Otherwise, httpd must be recompiled to add or remove modules. Configuration directives may be included conditional on a presence of a particular module by enclosing them in an block. However, blocks are not required, and in some cases may mask the fact that you're missing an important module.
To see which modules are currently compiled into the server, you can use the -l command line option. You can also see what modules are loaded dynamically using the -M command line option.