Updating your WordPress site’s PHP version is vital to prevent it from being hacked (and for other securityreasons), from slowing down considerably or from having numerous bugs start to appear.
To update your WordPress site’s PHP version, you’ll need to go to the “PHP management” section (named differently depending on the host) and choose version 8 at the very least.
But wait before making any changes: a wrong move can take your site down.
How to check my WordPress site’s current PHP version?
Checking your PHP version will tell you whether an update is needed or not.
To do so, in your WordPress back office go to “Tools” > “Site Health” > “Info” > “Server”.
You’ll find the information to the right of “PHP version”.
What are the risks of a PHP version that is too old?
1️⃣ The first risk is clearly security. The hackers are constantly looking for security flaws so they can attack many sites at once and make the most of their loot.
The older your PHP version, the greater the chance that security flaws exist and have been exploited by ill-intentioned people.
2️⃣ The second risk is your site’s performance. An old PHP version can cause major slowdowns in the loading of your pages, resulting in a poor user experience.
That will have a direct impact on your SEO (I know something about that) and your sales.
3️⃣ The third risk is that your WordPress site becomes inaccessible. Your themes and plugins must also keep up with the PHP versions that are currently secure. As they do, they become incompatible with older PHP versions.
This will cause bugs, loss of features and, in some cases, inaccessible sites.
What to do before updating your PHP version
Before any update on WordPress, whether it’s a plugin, a theme or your PHP version, you need to take a few precautions:
- Fully back up your site
- Check the compatibility of WordPress, your theme and your plugins with the PHP version you are moving to
- Update everything: WordPress, themes and extensions.
It almost sounds like a cooking recipe!
This is all the more important since the PHP2Shell flaws discovered in October 2026 : older PHP versions no longer receive official patches.
How to update your PHP version on o2switch?
It’s very quick and very simple:
- Go to your cPanel and log in (login details and URL provided by o2switch on the day you subscribed to your hosting plan).
- In the search bar type “php” and choose the “Select PHP version” option.
- In the drop-down list, choose the desired PHP version and click “Apply”.
How to update PHP on other hosts?
- OVH: Customer area > Hosting plans > select your domain > General information > Configuration > click the three dots to the right of “Global PHP version” > Edit configuration > choose the “stable64” runtime environment > select the desired PHP version > Confirm.
- Bluehost : Go to Sites > select your site > Settings > PHP version > choose the desired version > click Edit.
- Hostinger : Go to Websites > Manage > PHP configuration > select the desired version > click Updating.
- SiteGround : Go to Sites > Site Tools > PHP Manager > select the desired version > click Confirm.
If your host isn’t in this list, ask me in the comments.