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
Inside the file, you will find the lines that begin with
LoadModule, each of them referring to a different module.
#at the beginning of the line.
Save the changes by pressing
Control+O and exit the editor by pressing
Finally, you must restart the apache server so that your changes may take effect.
service apache2 restart
service httpd restart