Home WordPress Guide How to Update PHP in your WordPress Site (2022)

How to Update PHP in your WordPress Site (2022)

0
How to Update PHP in your WordPress Site (2022)

When you are not using the newest PHP version, your site will run at a snail’s pace. According to a study, about 55% of the customers will leave the site if it needs 6 seconds or more to finish loading. Imagine when you lose a large number of potential clients, how will your site develop? Therefore, let us help you with how to update PHP in WordPress.

An Overview of PHP

php code

PHP is an open-source programming language. You can use it for developing websites and other purposes. Besides, it’s server-side, working on the hard drive of a computer/laptop/etc. if you have any problem, it is all yours to cope with. It is not different if your site is rich in resources but the customers have slow computers or vice versa.

Update the Latest Version of PHP: The Advantages

All WordPress websites are using PHP, or in another way, PHP stands as one of WordPress’s platforms. As has been said, every time developers update WordPress, they also update PHP. Thus, if your site has the newest version of WordPress but with an old PHP version, it is very easy to meet problems with WordPress.

Loading Speed Improvement

Getting the PHP’s latest version is recommended as the most stable way to boost your site. Of course, you can take up other methods but updating PHP will bring the best outcomes. One more thing, the new version has the speed of triple the old version.

SEO Improvement

Increasing loading speed means your site will get better ranks since fast loading is one of the main factors. Besides, it will satisfy the visitors and bring you more customers.

Security Ensuring

WordPress and PHP are open sources so that everyone can access and make use of them. Becoming popular and famous, they turn out to be targeted by scammers, hackers, and AI bots. The older the PHP version is, the more chances your site will be hacked. Besides, old PHP versions will run out of security supports by the end of 2021.

Read more:  How to Change Font in WordPress (Simple Methods) (2022)

Checking the PHP Version of Your Site

Let’s take a quick walk through your PHP status before dipping into how to update PHP version in WordPress.

Checking through Your Hosting Plan

This should be the first thing you might want to check. In your hosting account options, navigate to the PHP menu. Then, you can check the current PHP version of your WordPress website.

Checking Through a WordPress Plugin

In the market, you can always use a plugin to check for the WordPress PHP update. Usually, people use the Display PHP Version. After downloading and installing it, navigate to “At a Glance” and look for the PHP version status. If it shows your site has the latest PHP version, you can be comfortable and do other works. However, if the reversed thing happens, there is a big chance that your PHP is old.

Well, let us help you update PHP WordPress.

Steps on How to Update PHP in WordPress

With PHP, there are still some exceptional cases. They are mostly risks when the newest PHP version is not compatible with your coding (in core, plugins, themes, etc.). The result is not satisfactory: the whole site or some parts may meet errors and bugs. Thus, you should check carefully before re-publishing your site after updates

As has been noted, upgrading PHP from old codes can’t go on the same when updating the newest version. Well, the best choice for you is to upgrade the whole site. Don’t worry if any error happens, the WordPress developers, support team, and community will help you deal with that.

Make a Backup of Your Site before Update

When beginning, back up all your site’s files. Before updating, you should make a backup of your WordPress site and PHP. There are 2 main reasons why you should do that. The WordPress plugins and themes are based on PHP, and your site will run with issues if your theme/plugin is poorly scripted.

As has been said, this step is very essential since you should keep your site updated with the newest PHP version. Therefore, it will keep your site from making problems and avoid security issues. So remember to back up everything before upgrading your WordPress website.

Check All PHP Compatibility/Conflict Problems with Plugins

Do you think that the latest WordPress themes and add-ons can work properly with the newest PHP? There will always be problems but you don’t have to worry whether they will happen or not. Thus, you may check the compatibility before making updates with a plugin.

Read more:  10 Best WordPress Restaurant Themes - 2022 Review

If you are using the WordPress platform, you can look for a plugin in the WP Engine. It is the PHP Compatibility Checker plugin that is specially made for this issue. After installing, it will scan all your website’s files and report any incompatible factors. Here is the short instruction to use this plugin. First, you have to download the plugin and install it on your website. Afterward, check the plugin menu and navigate to “Tools” and “PHP Compatibility”. Select the suitable PHP version and scan your site. You may choose to scan between the current themes and plugins or all elements.

Then, make the scan. The plugin will send you a report of all bugs and errors, even the place of those problems. Therefore, you can locate and solve those issues with the plugin’s suggestions.

Well, let’s get to the main part: WordPress update PHP.

Update the latest PHP version

update php wordpress

Finish the backup and issue test? Hence, it’s about the right time to update PHP version WordPress.

You can update your PHP in some methods. However, we do not recommend using SSH commands so we will skip it. We will more on a more simple method to update the PHP: upgrading via the hosting’s administrator dashboard. For cPanel, you can look for “My Accounts” and the “PHP Version Manager” section. Then, get to your site address, choose the planned PHP version, and click the “Save” button to finish. If you are using Plesk hosting, login in with the admin account. In the “Hosting Service”, choose the “Domains” and the domain(s) you want to update the PHP. Then, select “Hosting Settings”, move to “Web scripting and statistics”, and decide the update options and PHP version. At last, choose “Ok” to get it done.

With the other system, here comes the process of solving how to update WordPress PHP. Navigate to “Sites” and select the domain you want to update. Choose “Tools” and choose the planned PHP version under the “PHP Engine” panel. You may also test the new PHP only if you have made a backup version of your site. 8.0/7.4 PHP version is advised to be tested, and you should test with PHP version 8.0. In case the issues happen, users may swipe back to PHP 7.4.

After choosing the PHP version, a popup will show up and you will choose “Modify PHP version” to confirm it. After 3 mins, the PHP will restart itself but it won’t affect current visitors much. The developers can preview in real-time but some features will be temporarily inaccessible till the new version’s finish. Then, you will get a notification when the changes are done.

Read more:  How to Custom your WordPress Theme? (Without Coding Skills)

Testing Time: Site, Theme, and Plugins

After updating, your WordPress site should have the PHP newest version or the planned PHP version. To check it, you will search around your website whether it has problems or not. Observing a 500/501/502/… error or full white screen means your theme or a plugin may have not been compatible. To solve this problem, you should turn off all third-party plugins and re-apply them one by one. You don’t need to worry about ruining something. You have a backup plan to recover them if things go badly.

To make it, look for “Plugins” in the WordPress admin dashboard. Choose all plugins and press “Deactivate” -> “Apply”. Re-enabling a single plugin at a time will help users with the problems messing up with your site. Besides, you can apply the same process with the WordPress theme. If you are unlucky, you will have that problem with 1 or more plugins. These are our suggestions:

  • Update the newest version of the theme and plugins.
  • Contact theme/plugin developers for the PHP 7.4 support.
  • Search for a plugin/theme to fulfill the current place of the incompatible one.
  • Hire a professional developer.
  • Swipe back to the PHP lower version. This is the last solution when you have to wait for re-coding and fixing your problems.

Re-publishing Your Site

Consequently, you can re-publish your WordPress site or change something else for further plans. On the other hand, some of you will see that users may have lots of changes after updating the new PHP version. You may use the “push to live feature” to save your time and effort.

How to Update PHP WordPress: Conclusion

PHP plays an important part in your WordPress site and you should update it usually. Increasing speed means you will have more viewers and better SEO rankings on the search engines. Along with the article, you may have obtained lots of knowledge and tips when updating the PHP version on your site. After all those steps, your website will run fast and smoothly on all devices and browsers. That’s all we would like to deliver to you. We hope you will have a better website after this article.

Read more: How to Change Password in Your WordPress Site (2021)