Thread: Tweaking cPanel
View Single Post
  #1 (permalink)  
Old 20-05-2007, 11:16
flesso's Avatar
flesso flesso is offline
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,444
Default Tweaking cPanel

Do you find that your VPS Hosting or dedicated machine is regularly running out of memory because of cPanel? The following tutorial will help you overcome this, and help you to make your machine run faster.

Stopping SpamAssassin

This program isn't overly important to the stopping of spam. To turn it off do the following:

Go to WHM > Server Configuration > Tweak Settings > Disable Spamd

And:

Go to WHM > Service Manager > Disable Spamd

Stopping Mailman

If you or none of your customers aren't running any mail listings through cPanel, it would be a good idea to disable Mailman.

Go to WHM > Server Configuration > Tweak Settings > Disable Mailman

Never Use Tomcat on a VPS Hosting

Never run TomCat on a VPS Hosting because of it's high RAM needs.

Disable CatchAll

If you're undergoing a mail attack, catch all can use up many resources + storage. To disable do the following:

Go to WHM > Server Configuration > Tweak Settings > Change to :fail:

Tweak Apache

Apache can be quite a memory consuming monster on it's own. To tweak, do the following:

vi /etc/httpd/conf/httpd.conf

(Press 'shift' and 'i' to enable inserting/editing.)

Change the following settings:

MinSpareServers 2
MaxSpareServers 5

StartServers 3

Save the file by pressing 'esc', then type ':wq:, then hit return.

After that, restart Apache: /etc/init.d/httpd restart

All that should reduce your memory useage by a large amount.
__________________
Regards,
Josh Hold

eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!

LDN GIGS - Gig Listings for London

Super Moderator

I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.

I don't bite, honest.
Reply With Quote