How do i disable an apache module?



  • Man page for a2dismod: https://www.lightnetics.com/post/8659

    It varies on centos/redhat type systems and debian based systems.

    Redhat/Centos.
    You edit the config files normally under /etc/httpd/conf/httpd.conf, the main config file you can see includes a modules directory, which pulls in specific modules, the separate directory was created to keep the main config file streamlined. To install it normally a case of commenting out the entry or removing the module, usually removing the module removes the relevant module files too.

    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    Include conf.modules.d/*.conf
    

    Debian based Linux.
    You can use the perl scripts.

    $ sudo a2dismod proxy
    

Log in to reply
 

© Lightnetics 2024