Guide

WordPress Update PHP Version: What to Do

Published 29 October 2026 · By Pro Web Developers · 5 min read

In short
  • A PHP version update on WordPress means moving your site to a newer release of PHP, the language WordPress runs on.
  • PHP versions that no longer get security fixes can expose your website to known vulnerabilities.
  • Keeping PHP current helps your site stay secure and compatible with current plugins and themes.

Keeping your PHP version current helps your WordPress site stay secure and stable. Some web hosts update PHP for you. On many hosts you change it yourself in the hosting control panel, such as cPanel, not in the WordPress dashboard. This guide shows you how to check your version, how to change it, and why it matters.

What is a PHP version update on WordPress?

A PHP version update means switching the PHP version on your server to a newer one. PHP is a programming language used to build dynamic web pages, and WordPress needs it to run. New PHP versions bring security patches, bug fixes and often better performance. Each version gets security fixes for a limited time only.

yoursite.com/wp-adminTools > Site HealthInfo tab > Server sectionShows the exact PHP versionSITE HEALTH
Where the dashboard shows your PHP version. Our own illustration.

What causes a PHP version update?

Your hosting provider usually starts a PHP update. Hosts often retire old versions once they stop getting security fixes. Depending on your host, the switch may happen automatically, or you may need to make it yourself.

How to confirm if a PHP version update is necessary

To check if a PHP version update is necessary, you can:

  • Check your WordPress dashboard for notices. Tools > Site Health warns you when your PHP version is outdated.
  • Log in to your hosting control panel and look for PHP version information.
  • Open Tools > Site Health > Info > Server to see the exact PHP version your site uses.
  • Check your website's error logs for PHP-related errors or warnings.

Why do I need to update PHP version on WordPress?

Old PHP versions that no longer get security fixes can make your site an easier target for attackers. New vulnerabilities keep being found, and unsupported versions are not patched. Regular PHP updates help keep your site secure.

Old PHP versionNo more security fixesPlugin and theme errorsOften slowerCurrent PHPGets security fixesFits current pluginsOften better performance
Why an old PHP version is a problem. Our own illustration.

Security risks

Running an unsupported PHP version can leave your site open to attacks. These can lead to data breaches, malware infections or a site that stops working.

Plugin and theme compatibility

Updating PHP also keeps your site compatible with current WordPress plugins and themes. Many plugins and themes need a minimum PHP version. An old version can cause errors and broken features.

  • Outdated plugins and themes can also cause security vulnerabilities.
  • An old PHP version can stop you from installing or updating some plugins and themes.
  • Older PHP versions are often slower than current ones.

For more information on WordPress updates and their importance, check out WordPress Updates: What You Need to Know.

How to update PHP version on WordPress manually

Step 1: Check your current PHP version

Log in to your WordPress dashboard and go to Tools > Site Health. Open the Info tab and expand the Server section to see your PHP version. Make a full backup of your site before you change anything.

1Checkback up first2Pick versionall support it3SwitchcPanel or host4Testpages and forms
Changing PHP in four steps. Our own illustration.

Step 2: Determine the new PHP version

Check the recommended PHP version on the Requirements page at WordPress.org. Also check the documentation for your theme and plugins. Pick a version that all of them support, and update WordPress, your theme and your plugins first.

Step 3: Update PHP version through cPanel

  • Log in to cPanel and find the "Software" section.
  • Open "MultiPHP Manager" or "Select PHP Version" (the name depends on your host), and choose the new version for your domain.
  • Click "Apply" or "Set as current" to save the change.
  • If your host has no such option, ask its support team to change the version for you.

Step 4: Check the result in your WordPress dashboard

  • Log in to your WordPress dashboard and go to Tools > Site Health.
  • Confirm the new PHP version under Info > Server. You cannot change PHP from the dashboard itself.
  • Visit your main pages, forms and checkout to make sure they work.
  • If something breaks, switch back to the old version in cPanel and restore your backup if needed.

How to prevent PHP version updates on WordPress

You cannot stay on an old PHP version forever, and you should not try to. You can control when the change happens. Choose a host that lets you pick your PHP version so you can update on your own schedule.

Select a hosting plan with PHP version control

Look for a hosting plan that lets you choose the PHP version. This lets you test before you switch, so a surprise update does not break your site. Managed WordPress hosting can also help you stay on top of updates and keep your site secure.

Use a plugin to check compatibility

Plugins cannot change your server's PHP version. Some can help you scan your code for problems with newer PHP versions before you switch.

  • Regularly check your site's PHP version and update it if needed.
  • Test changes on a staging copy of your site first, if your host offers one.
  • Consider a hosting plan that offers flexible PHP version management.
  • Check your site's compatibility with the new PHP version before updating.
  • Consider a managed WordPress hosting plan for added security and support.

Signs it's time to ask a professional for help

You're not sure where to start

If the PHP update process feels unclear or the technical terms are confusing, get help. This matters most if your site has a complex setup, many plugins or a custom theme.

You're experiencing PHP version-related issues

If your site shows errors, loads slowly or breaks after a PHP update, ask for help. A professional can find and fix conflicts between WordPress core, your plugins and your theme.

You don't have the necessary skills or time

If you lack the time or technical skills to handle the update, consider hiring a professional. That leaves you free to focus on running your business.

  • You're using a managed WordPress hosting service and need assistance with the update.
  • You're dealing with a large or complex WordPress site that requires specialized care.
  • You're unsure about the compatibility of your plugins, theme, or other site components with the updated PHP version.

If you would rather hand this job to someone else, it is the kind of work our website services cover.

Frequently asked questions

Who should update their PHP version on WordPress?

Every WordPress site owner, including small businesses, should keep PHP on a version that still gets security fixes.

How often should I update my PHP version on WordPress?

Whenever your web host or WordPress's Site Health screen (Tools > Site Health) says your PHP version is outdated, and before your version stops getting security fixes.

Can I update my PHP version myself?

Yes, on most hosts you can change it in the control panel. If you're not comfortable with technical tasks or have a complex website, ask a professional for help.

Do I need to update my PHP version if my website is working fine?

Yes. A site can work fine on an old version that no longer gets security patches. Updating keeps those fixes coming.

Can I update PHP version manually through my WordPress dashboard?

No. The dashboard only shows your PHP version under Tools > Site Health. You change it in your hosting control panel, such as cPanel, or by asking your web host.

What happens if I don't update my PHP version on WordPress?

Your site can become open to security threats, data breaches and malware. It can also run into compatibility problems with plugins and themes.

Is it safe to update PHP version on WordPress?

It is usually safe if your plugins and theme support the new version. Back up your site first, update everything else, and test on a staging copy if you can.

Can I use a plugin to check if my PHP version is outdated?

You may not need one: WordPress's Site Health screen (Tools > Site Health) shows your PHP version and warns you when it is outdated. Your hosting control panel shows it too.

Will updating PHP version affect my website's performance?

Newer PHP versions are often faster than older ones. Check your site after the update to make sure everything works as expected.

Want a free check of your site?

Send us your web address. We'll look at it and tell you in plain English whether it has this problem, what else we notice, and what a fix would involve. Free, with no obligation.

Get a free site check →

Further reading

General advice only: check with your host or developer before changing a live site. How we write.