PHP is one of the most popular scripting languages on the web. It powers over 80% of all websites, including WordPress. Updating PHP is important since the latest version comes with many advanced functions. In this blog, we will show you how to update PHP in WordPress step-by-step.
Why you should update PHP in WordPress
One of the most important things to help you improve your website’s performance, security, and compatibility is to update PHP in WordPress. Each newly released PHP version brings improvements to the language. Let’s look at them in more detail.
- Features: The latest version brings new functions and syntax, so you and other developers can effectively add new features to WordPress themes and plugins without any trouble.
- Performance: PHP will be more efficient because more optimized elements are added. Therefore, your website loading time will be improved, which helps your site rank higher in search engines.
- Security: There will be security fixes in the latest PHP version that fix bugs and vulnerabilities. This helps protect your site from hackers.
Checking steps before you update PHP in WordPress
To ensure that the PHP update goes smoothly and safely, you should check the following before updating PHP in WordPress.
Checking the PHP version of your WordPress website
First of all, you need to check the PHP version that you are using for your WordPress website. Let’s go to Tools -> Site Health to do that.
Under the Site Health title, you will see the current status of your WordPress website. If you pass all the tests related to performance, security issues, etc., you will see the Good status with a green circle.
If you want to get more information about your WordPress site, let’s move on to the Info section.

Now, you can check the current PHP version of your site by opening the Server tab.

Verifying PHP compatibility and WordPress versions
Checking PHP compatibility for the version of WordPress you are using is extremely important and necessary. As you know, each major version of PHP adds new functions and syntax and removes old and obsolete elements. Therefore, you need to make sure that the PHP version works in harmony with the pre-installed WordPress core, plugins, and themes. Otherwise, your website may experience unexpected problems. Let’s have a look at PHP compatibility and WordPress version information here.
Ensuring the WordPress Core, Theme & Plugins are updated
An up-to-date WordPress site will stay safer, more efficient, and more reliable than a website that isn’t regularly updated. In addition, by keeping your WordPress website updated, you may experience fewer incompatibilities or related problems during PHP updates. Therefore, you should update the WordPress core, all active themes, and plugins before you update PHP in WordPress.
Backing up your WordPress site
In addition, you should back up your website in case of unfortunate incidents. You can use WordPress Backup Plugins to make the backup process easier and faster.
Creating a Staging Environment to Test the New PHP Version
A WordPress staging environment is ideal for creating a copy of your live website and storing it in a private development area. This helps you safely make WordPress changes or updates. A Staging Environment is an effective solution to test a new PHP version without worrying about crashes. You can create a staging environment via your hosting company or use a WordPress plugin to do that.
After creating a staging environment identical to your live WordPress website, update PHP in this environment to ensure that everything works well. If everything works, it’s time to update PHP on your live WordPress website.
How to update PHP in WordPress
In this section, we would like to show you the detailed steps to update PHP in WordPress with popular WordPress Hosting Companies. There are some differences among them, but it only takes a few minutes to finish the PHP updating process. Now, let’s go!
BlueHost
This WordPress hosting provider offers its clients two types of hosting control panels, which are Legacy and Rock.
With the Legacy hosting control panel, you can update PHP in WordPress with the following steps:
- Log in to your main Bluehost control panel.
- Go to Hosting -> cPanel.
- Click on Programming -> PHP Config.
- Choose the PHP version you want to update -> Save Change.
If you are using Rock hosting control panel, the interface is quite different, so you need to:
- Log in to your main Bluehost control panel.
- Click on the Advanced section on the main navigation menu.
- Select Software -> MultiPHP Manager.
- Press the Apply button after choosing the PHP version you want to update for each website.
SiteGround
In the past, SiteGround let users access the hosting control panel via cPanel. Today, however, it provides clients with a custom panel called Site Tools. So, to update the PHP version in WordPress, you just need to:
- Log in to Site Tools.
- Access Devs -> PHP Manager on the main menu.
- In the Manage PHP Settings section, simply choose the edit icon, then select the PHP version you want to update.
GoDaddy
If you are using this WordPress Hosting provider, there are three ways to do it.
- If you are using Linux, you can change the PHP version by accessing the GoDaddy Products page -> Choosing your hosting account -> Clicking on the Manage button -> Server -> PHP Version -> Manage -> Selecting the PHP version -> Update -> Save.
- If you are using Windows, you can change the PHP version as follows. Open your GoDaddy Products page -> Select your hosting account -> Press the Manage button -> Plesk Admin -> PHP Settings -> PHP Support -> Change the PHP version -> Ok.
- With Managed WordPress Account, simply go to the GoDaddy Products page -> Manage All -> Press the three-dot dropdown menu -> Settings -> Production Site -> PHP Version -> Change -> Update the PHP version -> Save Changes.
HostGator
HostGator is a hosting company that uses cPanel as its hosting control panel, so you can update PHP in WordPress with the MultiPHP Manager.
- Log in to cPanel.
- Choose Software -> Multi PHP Manager -> Select the domains you need to update PHP version -> Choose the PHP version -> Apply.

Namecheap
Since Namecheap provides you with various types of hosting accounts, the ways to update PHP in WordPress differ.
With Shared Hosting Accounts:
- Log in to the cPanel hosting account.
- Select the Exclusive for Namecheap Customers -> Select PHP Version.
- Choose the Current PHP version option -> Modify the PHP version you want.
- Press the Set as current button to update the PHP immediately.
With a VPS or Dedicated Server:
- Log in to the WHM control panel.
- Click on EasyApache -> Back up the current configuration -> Press the Settings Cog.
- Choose the Apache Version you wish to use -> Select the PHP version you need to update -> Save and build.
WP Engine
Another WordPress Hosting provider that many people use is WP Engine. In order to update PHP in WordPress with WP Engine, you can use either the overview page or the site page.
With the Overview Page:
- Log in to the WP Engine user portal.
- Choose the Production environment.
- Click on the Environment Stats -> PHP Version number -> Select the PHP Version you want to update -> Press Change PHP Version.
With the Site Page:
- Log in to the WP Engine user portal.
- Choose the Production environment.
- Next to the environment, simply press the PHP Version number -> Choose the PHP Version you need to update -> Change PHP Version.
Kinsta
By using Kinsta, you can easily update the PHP version in the staging environment or even on your live website.
- Log in to the Kinsta dashboard.
- Choose Sites -> Tools.
- In the PHP Engine -> Modify PHP version -> Select the version for your PHP.

Wrap Up
In conclusion, we hope that today’s instructions will help you update PHP on your live WordPress site smoothly. If you have any trouble, don’t hesitate to leave a comment below so that we can help you as soon as possible. Last but not least, there are numerous responsive free WordPress Themes on various topics. So, if you need to get a new one for your site, don’t forget to visit our site. Thank you for reading.



