In this manual, we will explain how to activate and deactivate certain modules in your Apache server installation. You will see that it is very easy.
Before we start, we recommend that you execute these instructions from a user account with administrator privileges. For example, the "root" user account.
In this case, we will use the "a2enmod" command. It is only necessary to write it followed by the name of the module that you want to activate.
Deactivating a module is as easy as activating it. In this case, we will use the "a2dismod" command followed by the name of the module that we wish to deactivate.
If you work with a distribution based on Redhat (CentOs, RHEL, Fedora, etc.) you must edit the following configuration file. For example with the "nano" editor.
Inside the file, you will find the lines that begin with "LoadModule", each of them referring to a different module.
Save the changes by pressing Control + O and exit the editor by pressing Control + X.
Finally, you must restart the apache server so that your changes may take effect.
For distributions based on Debian, write:
service apache2 restart
For distributions based on RedHat, write:
service httpd restart