Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AlexJ Posted February 19, 2023 Posted February 19, 2023 Trying reduce memory consumption overall for Apache. Have 64GB RAM on machine but that doesn't mean, I would like to run it un-optimized. I am just running IPS forum on this machine. Is their anyway, someone can help which modules are required by IPS, so i can disable not required ones. apachectl -M Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) alias_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) cloudflare_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) expires_module (shared) fcgid_module (shared) filter_module (shared) mime_module (shared) mpm_prefork_module (shared) negotiation_module (shared) php_module (shared) proxy_module (shared) proxy_fcgi_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) socache_shmcb_module (shared) status_module (shared) wsgi_module (shared)
Randy Calvert Posted February 19, 2023 Posted February 19, 2023 (edited) This is highly dependent on your specific Apache/PHP setup. I would recommend disabling anything one by one and letting changes bake a few weeks so you can catch any unexpected/unintended consequences. In general, I would recommend reviewing: https://httpd.apache.org/docs/2.4/mod/ This will tell you what a majority of modules do. You can then evaluate your conf file folders and see if those directives are used in any way. (If so, they'll stop working.) Some general thoughts on the module list you provided are below... again, I don't know your specific server setup so don't take any of this as gospel. What is good to disable for me might be required for you based on your host entry setup, how PHP is compiled, etc. 1 hour ago, AlexJ said: Trying reduce memory consumption overall for Apache. Have 64GB RAM on machine but that doesn't mean, I would like to run it un-optimized. I am just running IPS forum on this machine. Is their anyway, someone can help which modules are required by IPS, so i can disable not required ones. apachectl -M Loaded Modules: core_module (static) -- Enables AllowOverride. I would leave it. so_module (static) -- Depends on how your Apache/PHP setup is configured. Enables LoadFile/LoadModule directive. watchdog_module (static) -- Most likely not needed http_module (static) -- Leave this alone log_config_module (static) -- Do you use Apache logs? If so, leave this alone. logio_module (static) -- Logs bandwidth usage (bytes sent/received). Most likely not required. version_module (static) -- Most likely not needed. Allows you to set directives for specific versions or versions older/youger than... unixd_module (static) -- Leave this alone. access_compat_module (shared) -- Leave this alone. alias_module (shared) -- Enables Alias and AliasMatch feature within HTTP. I don't know how your HTTPD.confs are setup and if they use them. auth_basic_module (shared) -- Enables you to password protect specific folders/locations. Don't know if you use this anywhere, but not required for IPB. authn_core_module (shared) -- Similar to above module for password protecting folders/locations. authn_file_module (shared) -- Password protecting specific files (AuthUserFile directive). Chances are this is not utilized. authz_core_module (shared) -- Most likely not needed... but if you disable/enable access to specific areas such as logs, you might need it. authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) -- Most likely not needed if you're not running CGI scripts. But might be required if you're parsing PHP as a CGI. Depends on your specific server config. cloudflare_module (shared) -- Not required by IPS. If you want Apache to log the IPs seen by CF, this is needed. deflate_module (shared) -- Don't mess with this. dir_module (shared) -- Don't mess with this. env_module (shared) -- Don't mess with this. expires_module (shared) -- Don't mess with this. fcgid_module (shared) -- Depends on your Apache/PHP setup. Are you running PHP through a FCGI interpreter? filter_module (shared) -- Most likely not needed. mime_module (shared) -- Don't mess with this. mpm_prefork_module (shared) -- Don't mess with this. negotiation_module (shared) php_module (shared) -- Don't mess with this. proxy_module (shared) -- Most likely not needed unless you're using a proxy for requests. proxy_fcgi_module (shared) -- Most likely not needed unless you're procing requests through a FastCGI module. reqtimeout_module (shared) -- Don't mess with this. (Most likely not needed, but it wont hurt being there.) rewrite_module (shared) -- Don't mess with this. setenvif_module (shared) -- Don't mess with this. socache_shmcb_module (shared) -- A shared object cache provider. Not required by IPB, but depends on your server setup. In theory removable. status_module (shared) -- Not needed by IPB. Used for Apache troubleshooting however. wsgi_module (shared) -- Enables Phython support. Given that IPB does not use Python, this should not be required. Edited February 20, 2023 by Randy Calvert AlexJ 1
Recommended Posts