Skip to main content
Bit Aura Logo
Website Maintenance

How to Update PHP on WordPress Without Breaking Your Site

Old PHP leaves WordPress sites slow and exposed. Here is how to check your version, test the upgrade on staging and switch safely, step by step.

By the Bit Aura team · 23 Nov 2026 · 4 min read

A laptop showing the WordPress logo beside a PHP badge with a progress bar and a shield with a padlock.
On this page

Last month a critical PHP security flaw went public. The same week, we wrote to our past WordPress clients about it.

PHP is the language WordPress runs on. It sits underneath your theme, your plugins and every page. Most site owners never look at which version they are running, because it lives deep in the hosting settings.

That is a problem. Old PHP leaves a site slow, exposed and quietly fragile.

The good news is that updating is rarely scary. Updating blind is. Here is the order we follow on every WordPress site.

Why your PHP version matters

Each PHP release gets bug fixes for a while, then security fixes only, then nothing. Once a version reaches end of life, new security holes in it are never patched.

Newer versions are also faster. Many sites get quicker page generation simply by moving to a current PHP 8 release, with no other changes.

And plugins move on. Popular plugins steadily drop support for old PHP, so staying behind eventually blocks the updates that keep you safe. If security is on your mind, our post on WordPress malware hiding in mu-plugins shows what happens when a site falls behind.

Step 1: Check which version you are on

In your WordPress dashboard, go to Tools → Site Health → Info → Server. The PHP version is listed there. Site Health will also warn you on its Status tab if your version is outdated.

Compare it with the versions PHP still supports, listed on php.net. If yours is out of support, put the update on this week's list.

Step 2: Back up everything

Back up both the files and the database, and make sure you can restore them. Most hosts offer one-click backups. A backup plugin works too. Store a copy somewhere other than the server itself.

Step 3: Update WordPress, themes and plugins first

Old plugin versions cause most PHP upgrade errors, and the fix is often already released. Update WordPress core, then your theme, then every plugin.

While you are there, look for plugins that haven't been updated in years. An abandoned plugin is the one most likely to break on new PHP. Replace it now, while nothing is on fire.

Step 4: Switch PHP on a staging copy, not the live site

Most managed hosts offer one-click staging. Create a staging copy, then change its PHP version in the hosting panel. On cPanel hosts this is usually under MultiPHP Manager or Select PHP Version.

If your host has no staging, a local copy works for testing. Never run the first test on the live site.

Step 5: Click through everything that matters

On staging, test the parts of the site that earn money or leads:

  • The homepage and key landing pages
  • Every contact and quote form, including a real submission
  • WooCommerce cart, checkout and a test order, if you sell online
  • The WordPress admin: editing a page, uploading media, saving settings
  • Any custom feature, such as a booking system or member area

Step 6: Read the error log

Some problems don't show on screen. Turn on logging on staging by adding these lines to wp-config.php:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Errors then go to wp-content/debug.log. Fatal errors need fixing before you go live. Deprecation warnings are a to-do list for later, not a blocker. Turn debugging off again when you are done.

Step 7: Switch the live site in quiet hours

Pick your lowest-traffic time. Take a fresh backup, switch the PHP version in the hosting panel, then repeat the key checks from step 5.

Keep the old version noted. If something unexpected breaks, switching back takes about a minute while you fix it on staging.

What usually breaks, and why

  • Old custom plugins that use functions removed in PHP 8, such as create_function or each
  • Abandoned plugins nobody has updated for current PHP
  • Outdated page builders and premium themes from before PHP 8
  • Custom code in functions.php copied from old tutorials

Most of these are small fixes for a developer: a removed function swapped for its modern version, or an old plugin replaced.

The bottom line

A PHP update takes an hour when you test first, and a bad afternoon when you don't. Check your version today. It takes thirty seconds.

The safest PHP update is the one you test first. The riskiest is the one you never do.

Bit Aura updates, fixes and maintains WordPress sites, including custom PHP plugins. Ask us to check yours.

Want us to check your PHP version?

Tell us what you are planning and we will point you to the right next step. No pressure.

Keep reading

Talk to a Real Human, Not a Sales Bot

No pressure. Just a real conversation about how we can improve your digital presence — free of charge.