VPS or Dedicated - Site Performance Essentials + Tips
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

VPS or Dedicated - Site Performance Essentials + Tips

How to prevent your server from freezing up or fix site performance problems on a VPS|Dedicated Server

Before you start, measure it's current speed at PageSpeedGrader; just the total number of seconds.

Write down the time.

  1. Tune your CMS site (WordPress, Joomla, etc.)
    1. Temporarily deactivate ALL Plugins/Modules/Addons.
    2. Re-time your site at PageSpeedGrader
    3. Write it down.
    4. Install a Plugin/Module/Addon that does "caching": -- Examples: on WordPress there's W3 Total Cache or Quick Cache.br> W3TC is my favorite. (It's so good that IF i find my site has a conflicting Plugin that doesn't work well with W3TC that i go look for a replacement Plugin; all of the well-programmed Plugins work perfectly with W3TC in my experience.)
    5. Reactivate 1 of the other plugins/modules. Retime it with PageSpeedGrader and write it down.
    6. Disable that 1 plugin/module and then enable the next one that you were using. Retime it with PageSpeedGrader and write it down.
    7. Keep on doing that. You'll usually find one that takes significantly more time than the others. In rare cases it's a combination of two. Then find a replacement plugin/module that isn't so resource intensive.
    8. On WordPress, do the same series of time measurements with any Widgets.
  2. PHP FastCGI(fcgi) Handler:
    1. Login to your WHM(https://server.YOURDOMAIN:2087)
    2. Go to "Configure PHP & Suexec" (there's a search box at the top left of WHM)
    3. Then change the "Handler" to "fcgi" and click the button to submit.
  3. Use a CDN (Content Delivery Network)!

    Cloudflare is our favorite @ https://www.cloudflare.com/sign-up. It's free for http:// sites.

    NOTE: if you use https:// anywhere on the website, you have to buy a paid version of CF.

  4. Then after it's turned on, time it at PageSpeedGrader.

Unsupported Suggestions

Please understand that the recommendations below are outside the scope of our support. If you have further questions on them you'll need to do research online; We can not help.

What we are doing is pointing you in the right direction by giving you the many pieces of information that we have found to be helpful.

Additionally, some of the further resources online amongst many are forums.cpanel.net, dev.mysql.com/doc/, and httpd.apache.org

  1. Use a PHP cache module such as Xcache or eAccelerator:

    You'll want to research them before trying them:

    Please note that we do not give technical support on either of these.

    Try this at a time when you can most afford for your website to be down; just in case there's a problem.

    1. WHM => search for EasyApache and click on that.
    2. Wait for that to load.
    3. At the bottom of the Step 1 page, click "Start customizing based on profile".
    4. On Steps 2 and 3 click "Next Step". You don't have to do anything else other than click "Next Step" on each.
    5. On Step 4, Short Options => check the checkbox for the one that you want -- for example "Xcache for PHP" => scroll down, click Save & Build.

      This process can take 30 minutes or more to run!

      Use only 1 at a time. Time which one is faster for you. If it breaks your site, then just go back to WHM => EasyApache => and rebuild without it -- uncheck it, and then re-Build it.

  2. After it's turned on, time it at PageSpeedGrader.
  3. Tune the MySQL database server settings in /etc/my.cnf

    You can edit this file via SFTP using any SFTP program, like Filezilla (username root and port 22)

    Some places to learn about my.cnf optimization are:

  4. Time your site again at PageSpeedGrader.
  5. Tune the Apache web server.
    • One idea is using ApacheBuddy
    • Try the various MPM modules listed in Easy Apache => Exhaustive Options. There are "More Info" links next to each of module.
    • Load test your site using Siege or ab - Apache HTTP server benchmarking tool. Load testing will help you discover how many connections you can handle.
  6. Time it again.
  7. Buy additional RAM or CPU cores

    You can purchase additional CPU and RAM via the Addons => Add Resources tab (at the top of your Control Panel.)

P.S. How do you check what happened in the past?

Check the website and server logs:

The following two logs can be downloaded from the Access Logs section of your Control Panel

  • /usr/local/apache/domlogs/YOURDOMAIN.COM
  • /usr/local/apache/logs/error_log

The last log can be downloaded with an SFTP program, like Filezilla; using the username of root and port 22.

  • /var/log/messages

Also the `sar` shell command is good for a history.

This command can be run via SSH from your main cPanel username or as root.

Example: sar -q for today and sar -q /var/log/sa/sa24 if you want to see the 24th day of the month. Put in whatever number is yesterday if you want to look at yesterday.

sar -r is good also for looking at RAM usage history.

P.P.S. Search what others have done

You can see what other are doing to optimize their servers at http://forums.cpanel.net/optimization.html

http://forums.cpanel.net/f34/troubleshooting-high-server-loads-linux-servers-319352.html is only one of many examples found on the Optimization forum.)

Knowledgebase Article 106,801 views bookmark tags: dedicated optimize vps whm


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 89,603 views tags: backup cpanel dedicated hosting restore server transfer vps

This article will explain how-to enable FTP on a newly provisioned VPS or Dedicated cPanel server. Since FTP is an unsecured connection point to the server, cPanel has it disabled by default in version 11.86 or prior.
Knowledgebase Article 47,201 views tags: dedicated file ftp root server transfer vps

VPS and Dedicated servers come with all applications necessary to run a standard web and email server. The applications that come with the VPS and Dedicated servers are generally supported as-is by our support technicians.

Related Help Content

To help with installing an SSL certificate for an account on a dedicated server through the WHM
Knowledgebase Article 261,201 views tags: assign dedicated server ssl whm

How to install Java in a dedicated server.
Knowledgebase Article 177,110 views tags: dedicated install java server yum

What is CPU Protection
Knowledgebase Article 387,618 views tags: cpu database mysql optimize peak performance query script slow

This is a tutorial on how to install Git onto the server.
Knowledgebase Article 200,955 views tags: dedicated git install server yum

This article will explain some common causes for 500 errors on Dedicated or V.P.S servers.
Knowledgebase Article 130,738 views tags: dedi dedicated error server vps

How to setup name servers for multiple cPanel accounts.
Knowledgebase Article 281,721 views tags: accounts custom dedicated multi multiple nameservers server servers

How to install ClamAV to help with virus protection.
Knowledgebase Article 171,362 views tags: antivirus clamav cpanel dedicated plugin server whm

How to manage the SSL used for cPanel login through the WHM
Knowledgebase Article 222,355 views tags: cpanel dedicated install login manage server ssl

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here