How to disable apache modules?

Discussion in 'Apache' started by downloadsonline.org, Oct 10, 2011.

  1. #1
    Hi,
    I am using WHM, cpanel and I rebuilt apache using easyapache.
    I also have root and ssh access.

    I have these apache modules :
     
        [0] => core
        [1] => mod_authn_file
        [2] => mod_authn_default
        [3] => mod_authz_host
        [4] => mod_authz_groupfile
        [5] => mod_authz_user
        [6] => mod_authz_default
        [7] => mod_auth_basic
        [8] => mod_include
        [9] => mod_filter
        [10] => mod_deflate
        [11] => mod_log_config
        [12] => mod_logio
        [13] => mod_expires
        [14] => mod_headers
        [15] => mod_setenvif
        [16] => mod_proxy
        [17] => mod_proxy_connect
        [18] => mod_proxy_ftp
        [19] => mod_proxy_http
        [20] => mod_proxy_scgi
        [21] => mod_proxy_ajp
        [22] => mod_proxy_balancer
        [23] => mod_ssl
        [24] => prefork
        [25] => http_core
        [26] => mod_mime
        [27] => mod_status
        [28] => mod_autoindex
        [29] => mod_info
        [30] => mod_suexec
        [31] => mod_cgi
        [32] => mod_negotiation
        [33] => mod_dir
        [34] => mod_actions
        [35] => mod_userdir
        [36] => mod_alias
        [37] => mod_rewrite
        [38] => mod_so
        [39] => mod_php5
    
    Code (markup):
    I read somewhere that we should disable unneeded modules to save memory.

    Can you please inform me what modules are not necessary generally and how to disable them ?

    I never use cgi scripts.
    So, can I disable mod_cgi ?


    I also want to disable mod_userdir, mod_actions etc to save memory.
    I have looked into my httpd.conf file, but there is no mention of these modules.

    I think, there is no option to disable these modules in easyapache also.

    How to disable them?
    Thank you
     
    Last edited: Oct 10, 2011
    downloadsonline.org, Oct 10, 2011 IP