Lampwrights Forum > Linux, Apache, MySQL, PHP > Apache

Thread Tools
07-19-2010, 02:06 PM   #1
Jeff's Avatar
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Removing unneeded modules

When I am commissioning a new server, one of the first things I do is look around and pare off things that I do not think will be needed. For example, most of my clients have separate email servers, so when a CentOS server comes with Dovecot already installed, I remove it. The same goes for the typical Apache install. Usually it is configured to use a bunch of useless (to me) modules. Here is an example of a bunch I commented out of an httpd.conf file recently:

#LoadModule ldap_module modules/
#LoadModule authnz_ldap_module modules/
#LoadModule logio_module modules/
#LoadModule ext_filter_module modules/
#LoadModule mime_magic_module modules/
#LoadModule usertrack_module modules/
#LoadModule dav_module modules/
#LoadModule dav_fs_module modules/
#LoadModule proxy_module modules/
#LoadModule proxy_balancer_module 
#LoadModule proxy_ftp_module modules/
#LoadModule proxy_http_module modules/
#LoadModule proxy_connect_module
Every server requirement is different so this takes some testing. Most of the time it is as simple as running a config test after you comment out a module:

service httpd configtest
You may want to research each module you want to disable to make sure it isn't anything you might need. You can shave off the amount of RAM each process uses by reducing these included modules.
Jeff is offline   Reply With Quote



configuring apache


tweaking apache

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 08:25 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.