How to Update the PHP Version on Your WordPress Website Safely
To update PHP safely on a WordPress website, take a verified backup, check that your theme and plugins support the new version, test on a staging copy, switch at a quiet time and then test forms, login and checkout. If anything fails, you can switch back while you replace the incompatible component.
Why you should upgrade
Older PHP versions stop receiving security fixes, run slower and are eventually removed by hosts. Staying current protects your site and keeps it compatible with new plugin versions. Delaying until the host forces a change usually makes the upgrade more rushed and riskier, so a planned upgrade is far better than an emergency one.
Before you change anything
- Record your current PHP version, WordPress version and plugin list
- Take a full backup and confirm it can be restored
- Check the host supports the version you want
- Look at each plugin and theme for declared PHP compatibility
- Identify abandoned plugins that may not be updated
Not sure what is going on with your website?
Tell us what you are seeing and we will outline the next step before any chargeable work.
Check compatibility
Plugin and theme pages usually state the PHP versions they support. For anything unclear, test on a copy. Site Health in WordPress can also warn about outdated PHP. Pay particular attention to custom code and older premium plugins, where compatibility information may be missing.
The upgrade process
| Step | Action |
|---|---|
| 1 | Create a staging copy and set it to the new PHP version |
| 2 | Update WordPress, themes and plugins on staging first |
| 3 | Browse the site, test forms, login, search and checkout |
| 4 | Read the error log for warnings and fix them |
| 5 | Switch the live site at a quiet time |
| 6 | Retest immediately and monitor for errors |
If something breaks
Switching the PHP version back is usually instant in the hosting panel, which restores the previous behaviour. Then identify the failing plugin or code, update, replace or repair it and try again. Do not leave a site on an unsupported version just because a plugin is incompatible, because the risk grows over time.
Online stores and PHP upgrades
For WooCommerce, test the full order journey, including payments and emails, before and after. Choose a quiet time and avoid sales periods. See updating WooCommerce safely.
Reading the error log after the switch
After changing the PHP version, look at the error log, not just the front end. Deprecation notices and warnings do not always break the site immediately, but they signal code that will fail in a future version. Capturing them now lets you plan replacements or updates in a calm way. Test the dashboard as well as the public pages, because admin-side plugins sometimes fail where the front end does not. A clean log after a day or two of normal use is a good sign that the upgrade is stable.
When a plugin is not compatible
- Check for an update that adds support for the new PHP version
- Contact the plugin author or check the support forum for guidance
- Look for a maintained alternative and plan a migration
- Replace the functionality with a lighter solution if it is simple
- As a last resort, keep the site on the latest version the plugin supports while you plan its replacement
Avoid leaving a site on an unsupported PHP version indefinitely, because the security risk grows. Treat an incompatible plugin as a task to resolve, with a deadline.
Let us handle it
WP Mate plans PHP upgrades as part of maintenance and hosting. Background reading: what is PHP and why it matters. Or contact us.
Want this looked after for you?
WP Mate maintenance plans cover managed updates, daily offsite backups, security scanning and 24/7 uptime monitoring.
Want us to recommend the right plan for your website?
Services related to this guide
WordPress maintenance plans
Updates, daily backups, scanning and 24/7 uptime monitoring.See Care Plans →
Hosting and migration
Plan a safe move or review your hosting.Discuss My Hosting →
Talk to WP Mate
Not sure which service fits? Ask us and we will point you the right way.Contact us →
Related guides
Frequently asked questions
How often should PHP be upgraded?
When your current version approaches the end of support, usually every year or two, with testing.
Can upgrading PHP break my site?
Yes if plugins or themes are incompatible, which is why testing and backups matter.
Does my host choose the version?
Most hosts let you choose within a supported range, and they may force upgrades when old versions retire.
Ready to get your website sorted?
Based in Warrnambool, Victoria, helping Australian businesses online. Tell us what is happening.
Tell your mate what's going wrong.
Send us a few details and we’ll work out the next step. Please don’t include passwords or payment details.
- Australian support in plain English
- Clear scope and next steps before chargeable work
- Backup and recovery plan before live changes
