Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2006
    Posts
    264

    Suggested Apache Modules?? I think this is too much.

    I have just installed Apache 2.2.8 via YUM and it seems as though it comes with all modules loaded by default, and takes considerably longer than expected to both stop and restart the service.

    Can someone please tell me if ALL of these modules are needed/suggested:

    Code:
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_alias_module modules/mod_authn_alias.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.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_owner_module modules/mod_authz_owner.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule include_module modules/mod_include.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule mime_magic_module modules/mod_mime_magic.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 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 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_balancer_module modules/mod_proxy_balancer.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

  2. #2
    Join Date
    Jun 2002
    Location
    Phoenix, AZ
    Posts
    189
    What type of sites/hosting do you plan on running?

    Clint
    Clint Chapman ** www.ubiquityhosting.com ** www.ubiquitycloud.com
    Ubiquity Hosting ** Colocation ** Dedicated ** Cloud Servers ** VPS ** IP Transit
    Chicago ** Dallas ** Los Angeles ** Seattle ** Atlanta ** Newark ** Phoenix ** AS15003

  3. #3
    Join Date
    Jan 2006
    Posts
    264
    On this particular server, mostly mysql driven SugarCRM. Maybe Joomla sites too.

  4. #4
    Join Date
    Jan 2006
    Posts
    264
    Also... I am running ispCP Omega as a control panel.

  5. #5
    i'd say definitely get rid of the webdav and proxy modules, and cut down on the auth ones to just basic and digest.

    the rest you'll pretty much need.

  6. #6
    Join Date
    Apr 2009
    Location
    USA / UK
    Posts
    4,553
    Quote Originally Posted by zincoxide View Post
    I have just installed Apache 2.2.8 via YUM and it seems as though it comes with all modules loaded by default, and takes considerably longer than expected to both stop and restart the service.

    Can someone please tell me if ALL of these modules are needed/suggested:

    Code:
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_alias_module modules/mod_authn_alias.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.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_owner_module modules/mod_authz_owner.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule include_module modules/mod_include.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule mime_magic_module modules/mod_mime_magic.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 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 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_balancer_module modules/mod_proxy_balancer.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
    I would suggest you take the following modules out one-by-one (to make sure nothing breaks):

    Code:
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule include_module modules/mod_include.so
    and take all of the following modules out as they most certainly are not needed:

    Code:
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule info_module modules/mod_info.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.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 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
    that should trim your apache down quite a bit
    RAM Host -- Premium & Budget Linux Hosting From The USA & EU
    █ Featuring Powerful cPanel CloudLinux Shared Hosting
    █ & Cheap Premium Virtual Dedicated Servers
    Follow us on Twitter

  7. #7
    Join Date
    Jan 2006
    Posts
    264
    I think I'm going to keep the mod_suexec unless there is another way to make apache run as the user of the website?

  8. #8
    Join Date
    Apr 2009
    Location
    USA / UK
    Posts
    4,553
    Quote Originally Posted by zincoxide View Post
    I think I'm going to keep the mod_suexec unless there is another way to make apache run as the user of the website?
    technically that's not what mod_suexec does

    it's fine to keep it though as the module itself doesn't cause much overhead (the cgi processes it spawns do though)

    since it is clear you are using cgi you might also need to keep mod_actions - especially if you are using php via suexec.
    RAM Host -- Premium & Budget Linux Hosting From The USA & EU
    █ Featuring Powerful cPanel CloudLinux Shared Hosting
    █ & Cheap Premium Virtual Dedicated Servers
    Follow us on Twitter

  9. #9
    you might want to keep this one, if your virtualhosts serve multiple domains, e.g. www.mysite.com and www.mysite.net are the same site:

    Code:
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    unless you do it the cruddy way with .htaccess redirects etc.

Similar Threads

  1. Replies: 3
    Last Post: 09-18-2007, 11:25 AM
  2. Apache Modules -- Should Use Or Not?
    By qllonceagain in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-08-2005, 03:37 PM
  3. Apache Modules
    By LiquidBlueX in forum Hosting Security and Technology
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  4. modules in apache
    By slice16 in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 07-21-2003, 07:45 AM
  5. What add-on Apache modules do you use?
    By huck in forum Hosting Security and Technology
    Replies: 4
    Last Post: 07-07-2001, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •