Lampwrights Forum > Linux, Apache, MySQL, PHP > Apache
Register Community Today's Posts Search

Reply
 
Thread Tools
07-19-2010, 02:06 PM   #1
Jeff
Administrator
 
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:

Code:
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule logio_module modules/mod_logio.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_balancer_module 
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#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:

Code:
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

Reply

Tags

configuring apache

,

tweaking apache



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 09:31 AM.


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