Upgrading PHP usually makes a site faster and safer, but an old plugin can break. This step-by-step approach keeps the risk low.
1. Check where you are
Open Tools > Site Health > Info > Server and note the PHP version. See Check your PHP version in two minutes. Pick your target using Which PHP version should your site run?.
2. Update everything else first
Update WordPress, your theme, page builder and plugins. Remove plugins you no longer use. See Keep plugins minimal.
3. Back up
Take a full backup of files and database, and make sure you know how to restore it.
4. Make a staging copy
Clone the site to staging. Most managed hosts do this in one click. See Our safe workflow: staging, drafts and backups.
5. Switch PHP on staging
Change the version in your host’s panel. On Cloudways, which we use, PHP can be set for the whole server (server Settings & Packages) and, on newer servers, per application under Application Settings > PHP Settings. Cloudways notes the switch briefly restarts PHP and recommends a backup first (Cloudways: per-application PHP; Cloudways: server settings).
6. Test what matters
- Home page, key pages and blog posts, on desktop and phone
- Forms (send a test), search and log-in
- For shops: add to cart, checkout and order emails
- Editing a page in your builder
7. Read the error log
Turn on WordPress debug logging on staging and look for warnings or errors that mention a plugin or theme. Contact the author or replace the plugin before going live.
8. Switch live, then watch
Change the live site’s PHP version at a quiet time, repeat the key tests, and keep an eye on the error log for a day.
9. Keep a way back
If something breaks, switch PHP back to the previous version in the panel, or restore the backup, then fix it on staging.
Why now: PHP security releases and the 8.2 deadline.
Sources: Cloudways: change PHP version per application, Cloudways: manage server settings, PHP supported versions, checked 24 November 2026.

