How To Update PHP Versions In WordPress (It’s PHP 7.4)

The latest PHP version is 7.4 and if you have not updated yet, then this tutorial about how to update PHP to the latest version, without breaking your WordPress site. Read this guide carefully, as this may break your website if you don’t do it properly.

If you are wondering why you need to update your PHP to the latest version, then you must read this guide first. PHP is very important for WordPress sites and it helps in various ways. Even WordPress is recommending to have PHP 7.3 or higher & WooCommerce is also recommending to have PHP 7.2 or higher versions.

wordpress recommended php version

So, if your website is running on anything below PHP 7.2, then you must update your PHP version now. If required, switch to a fast hosting plan which offers the latest PHP version.

What Are The Benefits of Updating PHP?

I was not aware of the benefits of PHP as a beginner. That’s the reason like many beginners, I simply go for a cheap web hosting plan without bothering about the quality of servers they provide. But after I realize everything, I got the role of PHP and moved to SiteGround hosting. Yes, you got me correct, SiteGround provides servers with updated PHP versions.

Let me help you to understand how exactly PHP versions will help you.

  • Security is the biggest concern of today’s online business. With the updated PHP version, you can make sure that your servers are well equipped with the latest coding standards to handle the hackers & other malware attacks.
  • Your website speed is highly dependent upon the quality of your hosting servers. With updated PHP, your servers can deliver better speed.
  • As the technology is evolving, with every new update more amazing features are getting added which will actually help the websites hosted on those servers. They can handle errors better way, utilize optimum resources to speed up your WordPress site.

Now the next question is how to check the current PHP version of your website?

How To Check Your Current PHP Version

PHP settings can easily find out from your web hosting settings. If you have a cPanel hosting, then you can find that out easily. Just login to your web hosting cPanel and look for PHP settings. You can get the details easily.

Besides that, if you are using SiteGround hosting then there are plenty of ways you can check your PHP version. Either you can check through new SiteGround Site Tools settings or via SG Optimize Plugin settings.

If you are using a different web hosting plan, then you can install any of these plugins mentioned below and check your current PHP version.

  • Display PHP Version
  • Query Monitor
  • WP Health
  • Yoast (via notification)

How To Update Your PHP Version To Latest PHP

1. Update PHP Through cPanel

As soon as you log in to your cPanel, search for PHP Manager. You will find it under some segments like below.

php version manager

Then click on that and select the websites under your web hosting account and change the PHP version. Here is the screenshot for this blog taken from SiteGround cPanel.

siteground cpanel php version upgrade

2. Update PHP Via New SiteGround Dashboard

If you are signing up for SiteGround now, then you will get a different dashboard. Yes, SiteGround stopped offering cPanel hosting and right now come up with a new Dashboard. I will create a detailed tutorial about SiteGround Site Tools & new Dashboard. Anyway, under the new dashboard, you will find the details as per the below screenshots.

How To Update PHP For Site Tools users

3. Update PHP Via SG Optimizer Settings

Other than that, you can also update your PHP version through SG Optimize Plugin settings as well. Here is the screenshot is taken from my blog SG Optimizer settings. I have opted for Managed HP settings.

How To Update PHP For SG Optimizer users

FAQs About PHP Versions For WordPress

Is My WordPress Site Compatible for PHP Update?

You can run PHP Compatibility Checker and easily find out whether all the plugins & themes installed are compatible with the latest PHP update or not. If not then you will error after moving to the latest PHP.

How To Latest Upgrade PHP Versions On Bluehost

You can login to your Bluehost cPanel and through PHP manager check your PHP version and update accordingly. For any other hosting like A2 Hosting, FastComet, HostGator, Cloudways you can follow the same process or chat with their customer support, if you need any help.

Which PHP version is best for WordPress?

As I have mentioned already, if you can get updated to latest PHP version that would be the best. But make sure your website is not running on PHP 7.2 below versions. It can be very dangerous for your website health from speed & security point of view.

What is the most stable version of PHP?

By default the latest version is the most secure & stable version. It’s the fastest version and has the best performance, for example, PHP 7.3 is on average 9% faster than PHP 7.2. It’s the most compatible with the latest versions of popular CMSs like WordPress. 

Why I Am Getting Error After Updating To Latest PHP 7.4?

This might happen because your website theme or plugins are not compatible with latest PHP version. That’s the reason always check your PHP compability and use all updated plugins. In this case, you can easily revert back to previous PHP version. If you web hosting plan offers good support, then can fix such PHP errors immediately.

Conclusion: is Your Website Updated With the latest PHP?

So, you much check your website PHP version today and update accordingly following this PHP update tutorial. I have mentioned all the possible ways to update PHP and I hope you will find this tutorial useful.

As you have noticed, your hosting company is highly responsible for providing your good servers with the latest PHP version so that you can make sure your website highly secure & load faster. That’s the main reason I always recommend people to go for SiteGround hosting. I am using them for the last 1 year and very happy with their speed, security & support.

How To Update PHP Versions In WordPress
__CONFIG_local_colors__{"colors":{"635a9":"Accent Color","cd03b":"Border"},"gradients":{}}__CONFIG_local_colors__

Disclosure: This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

Read More Articles...

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
Share via
Copy link