How to see which modules are active in Apache

In this manual we will show you how to consult, from a command line, how to find out which are the active modules in your Apache installation. You will see that the steps to follow are very simple.

However, before you start, keep in mind that you will have to run these commands as a user with administrator privileges. For example, from the "root" user account.

1. List all active modules (Debian based distributions)

To list all active modules you can use the command "apache2ctl". The exact syntax is as follows: apache2ctl -M The "-M" option specifies to display a list of all currently active modules.

2. List all active modules (RedHat based distributions)

To list all active modules you can use the "httpd" command. The exact syntax is as follows: httpd -M The "-M" option specifies to display a list of all currently active modules.

3. List all available modules (Debian based distributions)

To list all available modules (both active and inactive), you can use the "ls" command and display the contents of the related Apache directory. ls /etc/apache2/mods-available.

4. List all available modules (RedHat based distributions)

To list all available modules (both active and inactive), you can use the "ls" command and display the contents of the related Apache directory. ls /etc/httpd/mods-available.

Your privacy is important to 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 no personally identifiable data is 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 logging back into this website. For more information about our cookie policy you can visit the Cookie information link. Click the "Accept" button or continue browsing to give us your consent to the mentioned cookies or access more detailed information at Manage cookies.
i