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.
- Login to your Cpanel.
- Under software section, choose ‘Select PHP Version’ option.
- 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.
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.
- Login to your Cpanel.
- Go to your WordPress directory.
- Open .htaccess file. (If you can’t see it, just go to settings in the top right corner and check hidden files.)
- Paste the code which is given below and save it.
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.