Optimizing cPanel/WHM for VPS

Optimizing cPanel/WHM for VPS

A quick note for optimizing cPanel/WHM for VPS..

Stopping SpamAssassin

If the host is not mail server i.e. not receiving email from internet then this service can turn off. 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 aren’t running any mail listings, it is good idea to disable the Mailman.

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

cPanel/WHM with Tomcat on a VPS

cPanel/WHM itself is huge. Planning to run Tomcat on a cPanel/WHM VPS is not a good idea. Tomcat and Java webapps are RAM/CPU intensive program in general.

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 httpd

Apache httpd can be quite a memory consuming service on its own. To tweak, do the following:

vi /etc/httpd/conf/httpd.conf

Change the following settings:

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