GreenLED Posted July 31, 2008 Share Posted July 31, 2008 Here's a question that I could use some help with. I'm back for more good answers . Below is a listing of all the modules in my httpd.conf. I'm running a site that is mainly PHP, and does not need CGI, ASP, etc. Therefore, with that in mind please let me know your suggestions on which I should disable / enable. Also, note that I'd like to disable the negotiation module, but I can't figure out which directives need to also be disabled. The server doesn't start when I comment out the negotiation module. Any hints? LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule ldap_module modules/mod_ldap.so LoadModule auth_ldap_module modules/mod_auth_ldap.so # LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule env_module modules/mod_env.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule imap_module modules/mod_imap.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so # LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so # LoadModule cgi_module modules/mod_cgi.so LoadModule logio_module /usr/lib/httpd/modules/mod_logio.so Quote Link to comment https://forums.phpfreaks.com/topic/117470-which-apache-modules-should-i-enable/ Share on other sites More sharing options...
corbin Posted July 31, 2008 Share Posted July 31, 2008 "Also, note that I'd like to disable the negotiation module, but I can't figure out which directives need to also be disabled." You want to? Why do you want to do so? It's quite important. http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html I have my Apache config quite minimized (runs two processes at 11MB RAM [minimum] each), and this is my module section: LoadModule alias_module modules/mod_alias.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so PHPIniDir "/Program Files/PHP/" LoadModule php5_module "/Program Files/PHP/php5apache2_2.dll" Quote Link to comment https://forums.phpfreaks.com/topic/117470-which-apache-modules-should-i-enable/#findComment-604297 Share on other sites More sharing options...
GreenLED Posted July 31, 2008 Author Share Posted July 31, 2008 "Also, note that I'd like to disable the negotiation module, but I can't figure out which directives need to also be disabled." You want to? Why do you want to do so? It's quite important. http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html I have my Apache config quite minimized (runs two processes at 11MB RAM [minimum] each), and this is my module section: LoadModule alias_module modules/mod_alias.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so PHPIniDir "/Program Files/PHP/" LoadModule php5_module "/Program Files/PHP/php5apache2_2.dll" I keep seeing "AddLanguage" directives of which I will never use. At least I don't think so. I only want my stuff to translate into English, right? Maybe I'm dumb or something, lol. What exactly does the negotiation module do -- in your own words? In the meantime, I will try out this setup and see if it works for me. The only downside is I'm using Plesk, which I believe adds some extra modules. Quote Link to comment https://forums.phpfreaks.com/topic/117470-which-apache-modules-should-i-enable/#findComment-604781 Share on other sites More sharing options...
corbin Posted August 1, 2008 Share Posted August 1, 2008 I would imagine that AddLanguage corrosponds with the Content-Language HTTP header. Example: AddLanguage en .en I would think that with that, any .en file would be served with a Content-Language: en header. Example headers: ---Request--- GET /somefile.en HTTP/1.1 Host: localhost Connection: close ---Response--- HTTP/1.1 OK Content-Language: en Also, the mime-type module is useful for more things than AddLanguage. Mime-types tell the browser how to handle each page (page used loosely), so imagine if the client didn't know what to do x.x. "What exactly does the negotiation module do -- in your own words?" Hrmmm to be honest, I thought it was kind of like the mime module, but it turns out, the negotiation module is pretty useless. When you disable it, what error do you get? Quote Link to comment https://forums.phpfreaks.com/topic/117470-which-apache-modules-should-i-enable/#findComment-605256 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.