Exceeding your bandwidth limits on HostGator?
Bandwidth limits happen when your hosting plan doesn’t have enough server resources to accommodate your plugins, images, theme, and other things that might be causing high CPU. You can use AWstats (built-in to your HostGator cPanel) and the Query Monitor plugin to find the source, but this tutorial outlines the most common solutions (I had CPU overages myself).
Just a heads up, HostGator is terrible. They restrict CPU usage and have slow server response times. Just look at the Facebook polls or read some conversations in the WordPress Hosting Facebook Group. They’re owned by EIG and have gone completely downhill. If you want to stop exceeding bandwidth limits, this guide will help, but I would switch to SiteGround or Cloudways. I use SiteGround (you can view my GTmetrix/Pingdom report with <1s load times).
1. Upgrade To PHP 7.2
Upgrading to PHP 7.1 or 7.2 can make your site significantly faster, while reducing CPU usage. This is especially true if you haven’t upgraded PHP versions for awhile (or have never done it).
Step 1: In your HostGator cPanel, select the PHP Selector.
Step 2: Select a newer PHP version (the higher, the faster).
Step 3: Check your website for errors. If you see errors, chances are you’re running plugins that aren’t compatible with the newer PHP version. In this case, run the PHP Compatibility Checker plugin to see which plugins are incompatible. You either need to delete these plugins (and replace them with plugins that are maintained better) or revert to an earlier PHP version.
Step 5: Enjoy your website which should be much faster.
This article was written by Tom Dupuis and originally published on Tom Dupuis.