Skip to main content

How to Upgrade PHP Version on an Older WordPress Site

November 19, 2026 6 min read
A server cabinet beside blank paper shapes in a tidy office.

Upgrading the PHP version for a WordPress site is a server-level change, and an older site may rely on a theme, plugin, or custom code that is not compatible with the new version. The safest approach is to check the current environment, review what the site depends on, test the change on a staging copy, and prepare a rollback before making the change live.

WordPress notes that themes and plugins may not work with every PHP version, and the PHP version is changed through the hosting environment rather than inside the WordPress dashboard. See the WordPress guide to updating PHP for more context.

Start with a record of the current setup

Before changing anything, write down the PHP version in use and where it is configured. Also note the WordPress version, active theme, installed plugins, any custom code, and relevant server settings. This gives you a reference for testing and helps whoever manages the hosting environment understand what changed if a problem appears.

You can usually find the PHP version in the WordPress dashboard under Tools > Site Health > Info, in the server section. The name or location of this screen can vary by WordPress version. You can also check your hosting control panel or ask your host. The WordPress requirements page is useful when comparing your environment with WordPress’s published requirements. Confirm the target PHP version with your host or developer rather than choosing one based only on an automated warning.

Keep a record of the live site’s current PHP setting and server configuration. Check what PHP version is active on both production and staging. A staging copy with a different server setup may not reveal the same compatibility problems.

A closed laptop and folder beside a server rack in a neat workspace.

Review themes, plugins, and custom code

Make an inventory of the active theme and plugins, including extensions that affect forms, payments, membership, booking, or other important business tasks. For each item, check its update status and look for compatibility information from its developer. If the site uses a custom theme or custom code, ask the person who maintains it whether it has been tested with the intended PHP version.

Compatibility scanners and update notices can help identify concerns, but they are not a complete guarantee that the site will work. Treat them as clues, then confirm with a staging test and, when needed, the theme or plugin developer. If you need a refresher on safe plugin maintenance, see how to approach WordPress plugin updates.

Do not combine a PHP change with a large batch of unrelated updates. If you update WordPress, the theme, plugins, and PHP all at once, it can be difficult to identify which change caused an issue. Update and test in deliberate stages, keeping a record of what you changed.

Prepare a staging copy

A staging site is a separate copy where you can test changes without exposing visitors to a broken live website. Ask your host how its staging environment works, or have a website professional create one. Before testing, confirm that the staging copy can use the same PHP target and relevant server configuration as the live site.

Protect the staging copy as carefully as the live site. It may contain information copied from real customers, patients, donors, or clients. Restrict access, use appropriate access controls, and avoid copying sensitive information that is not needed for testing. If real information is not necessary, use test records instead. Review the site’s backup and recovery process as part of your preparation; this guide to planning WordPress backups can help frame that review.

Test the PHP change before launch

Once the staging site is ready, use this process to check the change:

  1. Capture a restorable backup. Confirm that it includes both the site files and the database, and that you know how to restore it.
  2. Change PHP on staging. Use the hosting control panel or ask the host to make the change. Check that the intended version is active after the setting is applied.
  3. Review errors. Check the WordPress dashboard, server or PHP error logs, and any available site health notices. Resolve errors before considering a live change.
  4. Test important tasks. Visit key pages, sign in to the admin area, submit forms, check navigation, and test any business-critical features such as checkout, booking, or donations.
  5. Check the site on common devices and browsers. Look for broken layouts, missing content, slow or incomplete page loads, and unexpected behavior.

If a test fails, disable or update the affected component on staging only, then repeat the relevant checks. For a theme or plugin conflict, isolate the problem rather than making several changes at once. The WordPress Learn lesson on troubleshooting plugin and theme conflicts describes a methodical way to investigate.

Plan the live change and rollback

Do not schedule the production change until the staging test is satisfactory and you know how recovery will work. Ask the host in advance whether it can switch the live site back to its previous PHP version, how that change is made, and whether the previous version remains available for your account. Do not assume that a backup alone will restore the PHP setting.

Keep a current backup of both files and the database, and confirm who can restore it. Record the current PHP setting, the target setting, the person responsible, and the steps for switching back. Choose a time when someone who can make and verify the change is available. If the site relies on online transactions or important forms, make sure you can check those functions promptly after the change.

If the live site develops errors, first follow the agreed rollback process with your host or website administrator. Switching back to the previous PHP version may restore compatibility, but it does not replace restoring files or the database if those were changed or damaged. After recovery, investigate the cause on staging before trying again.

Check the live site after the upgrade

After the host changes PHP on production, confirm that the new setting is active. Check the homepage and important landing pages, log in to WordPress, and test the tasks visitors rely on. Review error logs and site health notices, and watch for reports of broken pages or failed forms. A quick homepage check alone may miss problems in checkout, appointment requests, or other less frequently used features.

Keep notes about the change and its outcome. That record will make future maintenance easier and help distinguish PHP-related issues from other updates.

Frequently asked questions

Can an older WordPress site run on a newer PHP version?

It may, but compatibility depends on the site’s WordPress core, theme, plugins, custom code, and server configuration. Test the actual site on a staging copy before changing production.

Should I update WordPress, themes, and plugins before changing PHP?

Review and update components as needed, but avoid making every change at once. Use staging to test updates and the PHP change in controlled steps so you can identify the source of a problem.

Who changes the PHP version?

PHP is configured through the hosting environment. Your host, server administrator, or website manager can explain where the setting is managed and who has permission to change it.

What should a rollback plan include?

Confirm how to switch PHP back through the host, keep a restorable backup of both files and the database, and identify who will perform the recovery. Check that the backup can be restored before relying on it.

Make the upgrade a planned maintenance task

A controlled PHP upgrade starts with an inventory, continues with a realistic staging test, and ends with a verified recovery path. Zevonix provides WordPress management, secure VPS hosting, daily automated backups, and recovery support for business websites. If you would like help reviewing a PHP upgrade plan, contact Zevonix at (904) 658-0777.

Ready to Strengthen Your IT?

Let Zevonix handle your technology so you can focus on what matters most — your business.

Schedule a Free IT Assessment