Improving Apache webserver performance
From WBITT's Cooker!
[root@www httpdocs]# httpd -M Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) auth_basic_module (shared) authn_file_module (shared) authn_default_module (shared) authz_host_module (shared) authz_user_module (shared) authz_groupfile_module (shared) authz_default_module (shared) include_module (shared) log_config_module (shared) setenvif_module (shared) mime_module (shared) status_module (shared) autoindex_module (shared) dir_module (shared) alias_module (shared) rewrite_module (shared) cgi_module (shared) negotiation_module (shared) cache_module (shared) expires_module (shared) headers_module (shared) evasive20_module (shared) bw_module (shared) mysql_auth_module (shared) limitipconn_module (shared) perl_module (shared) php5_module (shared) ssl_module (shared) Syntax OK [root@www httpdocs]#
Cut down the Apache shared modules to the following only. The server runs multiple name based apache virtual hosts, running Apache, MySQL, PHP and few websites developed in Joomla, WordPress and Wiki. There are a couple of CGI scripts too. User authentication is required both through MySQL auth modules, and through Basic Auth systems, normally in .htaccess files.
[root@www httpdocs]# grep ^LoadModule /etc/httpd/conf/httpd.conf LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule dir_module modules/mod_dir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule cgi_module modules/mod_cgi.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule cache_module modules/mod_cache.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so LoadModule bw_module /usr/lib64/httpd/modules/mod_bw.so [root@www httpdocs]#