Optimizing apache by disabling unnessecary modules (mod_ssl etc.)

ioor

Verified User
Joined
Jun 29, 2008
Messages
9
I'm running on a low memory(256MB) vps and I'm looking to optimize it as much as possible. Since I don't use ssl on any of my sites, is it safe to disable the mod_ssl module in apache and if so how do I do that?

I tried commenting out this in /etc/httpd/conf/httpd.conf:

Code:
Include conf/extra/httpd-ssl.conf

but mod_ssl still show up when I run: httpd -l

I've disabled named, dovecot, exim, proftpd and vm-pop3d also, since I don't need them.

I'm also running these module, which of them doesn't directadmin need/use?

Code:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_deflate.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_headers.c
  mod_unique_id.c
  mod_setenvif.c
  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_dav.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_dav_fs.c
  mod_dav_lock.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

If anybody else has a optimization tip feel free to post it.
 
Hi, I'm also trying to optimize my servers and found the following modules

Code:
# httpd -D DUMP_MODULES
           
Loaded Modules:                                                                                               
 core_module (static)                                                                                         
 authn_file_module (static)
 authn_default_module (static)
 authz_host_module (static)
 authz_groupfile_module (static)
 authz_user_module (static)
 authz_default_module (static)
 auth_basic_module (static)
 include_module (static)
 filter_module (static)
 deflate_module (static)
 log_config_module (static)
 logio_module (static)
 env_module (static)
 expires_module (static)
 headers_module (static)
 unique_id_module (static)
 setenvif_module (static)
 proxy_module (static)
 proxy_connect_module (static)
 proxy_ftp_module (static)
 proxy_http_module (static)
 proxy_ajp_module (static)
 proxy_balancer_module (static)
 ssl_module (static)
 mpm_prefork_module (static)
 http_module (static)
 mime_module (static)
 dav_module (static)
 status_module (static)
 autoindex_module (static)
 asis_module (static)
 suexec_module (static)
 cgi_module (static)
 dav_fs_module (static)
 dav_lock_module (static)
 negotiation_module (static)
 dir_module (static)
 actions_module (static)
 userdir_module (static)
 alias_module (static)
 rewrite_module (static)
 so_module (static)
 python_module (shared)
 evasive20_module (shared)
 php5_module (shared)

I do need mod_ssl, but I think I could disable mod_dav and mod_proxy. What do you think? Any other suggestion for removal?

Thanks!
 
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
deflate_module (static)
log_config_module (static)
logio_module (static)
dav_module (static)
asis_module (static)
dav_fs_module (static)
dav_lock_module (static)

I supose you are not using these modules on your hosting.
I will be better if you will just read the docs about it, cause you know better what you need.

I dumped Apache on my Hosting, not using it for couple of years, it's really loading the system and it's not working stable on High Loaded servers.
 
deflate_module is used.
I guess log_confg is also needed.

auth_basic is the one used for HTTP authentication? In that case, it is used as well.

dav_* are not used, so I think I could recompile without them.

include_module is used for SSI, right? I don't think that's being used, but it's a service I'd like to keep providing.
 
These are modules.
You dont need to recompile Apache for this.
Modules - are ment to be loaded without compilation.
 
But those which appear as static (added when custombuild compiles apache, with --enable-{module}) aren't always loaded when the httpd binary is executed?
 
Back
Top