How to disable apache modules? (a2dismod)

How to disable apache modules, How to disable apache modules? (a2dismod), GTechHub

How to disable apache modules? question is very common among system administrators. You can easily disable unwanted apache / apache2 modules by using the Linux command “a2dismod”. It will disable a module by removing those symlinks.

sudo a2dismod [module name]

a2dismod is an inbuilt script that disabling the given module from an apache configuration file by removing symlinks.

a2dismod: enable/disable an apache module in APACHE_MODULES in /etc/sysconfig/apache2

usage: a2dismod [-d] module
 a2dismod -l list modules
 a2dismod -q module query if module is installed

HTTPD_INSTANCE=<instance_name> environment variable can be used to specify apache instance

After disabling apache modules you should reload your apache to initialize given changes in the server.

Sample:

To disable ‘SSL’ module

sudo a2dismod ssl

How to disable apache modules, How to disable apache modules? (a2dismod), GTechHub

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *