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 starting the tutorial, don't you have a Cloud Linux server on which you can install your Apache web server? Don't worry! With just one click, you can easily deploy it with SW Hosting.
cta:cloud_so
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.
a2enmod modulename
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.
a2dismod modulename
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.
nano /etc/httpd/conf/httpd.conf
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 Control+X
.
Finally, you must restart the apache server so that your changes may take effect.
service apache2 restart
service httpd restart
Remember that if you do not yet have a Cloud Linux server on which you can install Apache, you can easily deploy it with SW Hosting.
cta:cloud_so