How To Make WordPress Website Run Faster By Changing CPanel Settings

Hello guys, welcome back to another tutorial. This tutorial is about getting the real speed of your WordPress site. Firstly, I thought to put the title as “speed up your website by changing only one setting in CPanel”. But I just thought to cover another part using this post.  By the way, most of us are considering about WordPress CMS. However, that’s not enough, if WordPress plugins and themes are not compatible with the server requirements. Because of not thinking about the other side, we are blaming for Hosting Company and sometimes, they don’t even know, what is it about.

However, I will show you how to speed up your WordPress website by changing some settings in CPanel. (In addition, these changes can apply for any of other frameworks. Because some of their function have written using some latest versions.)

Changing Your Default PHP Version

This is a very very important thing even before the installation of WordPress website. Because, without using a compatible PHP version, most of the functions won’t be work as clarified. In addition, there is an impact on security for your website by using the latest version of PHP. Because outdated versions can have some common issues.

By the way, if you’ve already installed WordPress cms, you have to check all the plugins and themes are compatible with the version which you’re going to change. If not, you have to consider whether you need to change it or not.

For now, the latest version of PHP is 7.2. But I recommend you to upgrade your version to 7.1 or 7.0. Let’s see how we change it.

  1. Login to your Cpanel.
  2. Under software section, choose ‘Select PHP Version’ option.
  3. Then, you can change your version to the latest one and submit.

After changing that, you can check whether your site is working properly or not. If an error came up, just let me know in the comment section.

However, if you have more than one domain, you can change them using  MultiPHP INI Editor.

GZip Compression

This method will increase your page loading speed really easily by putting a little piece of code to your .htaccess file. So let’s see how to do it.

  1. Login to your Cpanel.
  2. Go to your WordPress directory.
  3. Open .htaccess file. (If you can’t see it, just go to settings in the top right corner and check hidden files.)
  4. Paste the code which is given below and save it.

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png

Now, you can check your website and experience the real speed. Like a magic, your web pages will be loaded ASAP, and just do the other optimization tricks in your WordPress CMS.

After doing those changes, you can do anything using WordPress plugins. Just do these changes and let me know if you got any questions. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *