The process of updating the PHP Version of your WordPress Site is relatively easy and mostly depends on the hosting provider. Before you do it, perform a backup, check what is the current version, see to what date it is supported, and do you really need to update already. Then follow the instructions below.
What PHP version is your WordPress site currently using?
You can find out the current version of PHP that your WordPress site is using by following these steps:
- Enter your WordPress admin panel with your username and password.
- Locate the menu Tools. Hover over it, and you will see other submenus.
- Click on Site Health.
- Inside the menu, find the tab Info and click on it.
- Inside the Info tab, scroll to the Server section and expand it by clicking on it.
- There, you will see the current PHP version.
What is the latest version of PHP?
The current stable version of PHP is 8.1.2. It was released on 20 January 2021.
PHP 8 was introduced in 2020, and PHP 8.1 came in December of 2021.
If you are running a PHP version older than 7.4, like 7.3, 7.2, 7.1, 7.0, 5.6, etc., you are already using an outdated version, and you should most definitely update to a newer one.
If you are using PHP 7.4, you have time until 28 November 2022 to upgrade.
And if you have updated previously to PHP 8.0, you will receive support until 26 November 2023.
Updating the PHP version of your WordPress website
The process of updating the PHP Version will happen in the back, not directly through your WordPress Admin panel. It will depend on the hosting provider you are using, but in general, the process is very similar.
If you are using shared hosting, you will probably have cPanel.
- Log in to your cPanel with your username and password.
- Inside the search bar, search for “PHP version” and click on the result.
- You will see the current version, and there will be a drop-down menu next to it. Click on it and select a newer version.
- Click on set as current, and you are ready.
If you are using SiteGround, follow these steps:
- Log in to your SiteGround account with your username and password.
- Go to the Websites tab, then click on Site Tools.
- Next, go to DEVS, and click on PHP manager.
- You will see the current version, and on the right, there will be a small pen icon for editing. Click on it.
- Select the PHP version you would like to use.
Any other hosting provider
The generic steps that you should follow, no matter the provider, are:
- Log in to your control panel.
- Located the PHP settings.
- See the current version.
- Update it to the PHP version you like, and you are ready.