Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to activate and deactivate modules in apache

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.

1. Activate apache modules in Debian-based distributions

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 nombremodulo

2. Disable apache modules in Debian-based distributions

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 nombremodulo

3. Activate and deactivate apache modules in distributions based on Redhat

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.

  • To deactivate a module you must write a pad (#) at the beginning of the line.
  • To activate a module you must ensure that the line does not start with a pad.

Save the changes by pressing Control + O and exit the editor by pressing Control + X.

4. Restart the apache server

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

More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.