How to Update PHP Version in WordPress Using cPanel?

cPanel and PHP logos
Tutorial · Hosting · 10 min

Check which PHP version your WordPress site uses, prepare so nothing breaks, switch to a supported version in cPanel, and roll back quickly if needed.

BeginnerAbout 10 minutesWorks with cPanel hostingUpdated November 2026

The short version

  1. Check your version under Tools → Site Health → Info → Server.
  2. Back up your files and database, then update WordPress, your theme and all plugins.
  3. In cPanel open MultiPHP Manager (or Select PHP Version).
  4. Tick your domain, choose a supported version such as PHP 8.3 or newer, and click Apply.
  5. Check the extensions and limits, then test your site and the error log.
  6. If anything breaks, select the previous version again.

PHP is the programming language WordPress runs on. Your hosting account decides which PHP version your site uses, and many sites still run an old one because nobody changed it after installing WordPress. Old PHP versions are slower, and once a version reaches end of life it no longer receives security fixes.

This guide shows how to check your current version, prepare so nothing breaks, switch the version in cPanel, and go back if something goes wrong.

Why update PHP?

  • Security: unsupported versions get no fixes for newly found vulnerabilities.
  • Speed: each new PHP release runs WordPress code more efficiently.
  • Compatibility: current plugins and themes, and WordPress itself, increasingly require a recent version.
  • Site Health: WordPress shows a warning when your PHP version is outdated.

PHP versions and their support dates

PHP version Security support ends Should you use it?
7.4 and older Ended (7.4 in November 2022) No. Update now.
8.0 Ended November 2023 No. Update now.
8.1 Ended 31 December 2025 No. Update now.
8.2 31 December 2026 Only for a short time. Plan the next update.
8.3 31 December 2027 Yes
8.4 31 December 2028 Yes
8.5 31 December 2029 Yes, if your host, theme and plugins support it

Dates are from the official list at php.net/supported-versions. Check it again when you read this, because it is the source of truth.

1

Check your current PHP version

In WordPress go to Tools → Site Health → Info, open the Server section and look at PHP version. The Status tab also tells you if WordPress recommends an update.

WordPress Site Health Info screen showing the PHP version in the Server section
Tools → Site Health → Info → Server shows the PHP version.
2

Prepare before you change anything

Five minutes of preparation prevents most problems:

Four safe steps to change PHP: back up, update, switch, test
Back up, update, switch, test.
  1. Make a full backup of your files and database. Use cPanel’s Backup tool or a backup plugin, and download a copy.
  2. Update WordPress, your theme and all plugins. Updates are where authors fix compatibility with new PHP versions. Delete plugins and themes you no longer use.
  3. Read the requirements. On each plugin’s page on WordPress.org, check Requires PHP and Tested up to. Replace anything abandoned for years.
  4. Test on a copy if you can. A staging site or a second domain on the same host lets you try the new version without risking the live site.

Old tools: some guides recommend the “PHP Compatibility Checker” plugin. It is no longer actively maintained and can give wrong results for newer PHP versions, so do not rely on it alone. Testing on staging is more reliable.

3

Log in to cPanel and find the PHP tool

Sign in to your hosting account and open cPanel. This is usually yourdomain.com/cpanel or a link in your hosting dashboard. Scroll to the Software section and open MultiPHP Manager or Select PHP Version. They do the same job and your host decides which one you get.

The Software section in cPanel with MultiPHP Manager and Select PHP Version highlighted
Look for MultiPHP Manager or Select PHP Version in the Software section.

No cPanel? Hosts with other panels (Plesk, hPanel, DirectAdmin) have the same setting under PHP settings or PHP configuration. If you cannot find it, ask your host’s support to change it.

4

Choose the domain and the new version

  1. In MultiPHP Manager, tick the domain you want to change. Each domain and subdomain has its own version.
  2. Open the PHP Version list and choose the version you decided on. Hosts label them like PHP 8.3 (ea-php83).
  3. Click Apply.
MultiPHP Manager: select the domain, choose the PHP version and apply
Select the domain, choose the version, click Apply.

On hosts that use Select PHP Version, choose the version from the drop-down at the top and click Set as current.

5

Check extensions and limits

PHP extensions are add-on modules, and each PHP version has its own list. After switching, make sure the ones WordPress and your plugins need are still on. In Select PHP Version → Extensions, check at least these:

  • mysqli or mysqlnd (database)
  • curl, openssl (connections to other services)
  • mbstring, xml, dom, zip, intl (text and file handling)
  • gd or imagick, exif (images)
  • opcache (speed)

Use MultiPHP INI Editor to check limits such as memory_limit (256M is a comfortable value for most sites), max_execution_time, upload_max_filesize and post_max_size. Changing the version can reset these to defaults.

6

Test your site

  • Reload Tools → Site Health → Info → Server and confirm the new PHP version.
  • Visit the home page, a post, a page with a form, and the login page. If you sell things, run a test checkout.
  • Log in to the dashboard and open Plugins, Media and Settings. Watch for warnings.
  • Look at the error_log file in your site’s folder, or Errors in cPanel, for PHP errors and deprecation notices.
7

If something breaks, go back

Open the PHP tool in cPanel again, select the previous version and apply. The site comes back straight away. Then find the cause: the error message shows the plugin or theme file. Update, replace or remove that plugin, and try the upgrade again.

Problem Likely cause and fix
White screen or “critical error” A plugin or theme is not compatible. Roll back, then check error_log for the file name.
Call to undefined function A PHP extension is missing. Turn it on under Select PHP Version → Extensions.
Warnings such as Deprecated Old code that still works but will fail in the future. Update or replace the plugin or theme.
Site Health still shows the old version Clear caches. Look for old AddHandler or SetHandler lines in .htaccess. Ask your host if it persists.
Uploads or imports fail after the change The limits reset. Set upload_max_filesize, post_max_size and memory_limit again.

Keep it current: put a reminder in your calendar each year to check php.net/supported-versions. Updating one version at a time is far easier than jumping from 7.4 to 8.4.

Frequently asked questions

Which PHP version should I use for WordPress?

Use the newest version that your host offers and that your theme and plugins support. At the time of writing that is usually PHP 8.3 or 8.4, and PHP 8.5 where available. Check php.net/supported-versions for the current list, and avoid any version that no longer gets security fixes.

Will updating PHP break my site?

It can, if an old theme or plugin uses code that newer PHP removed. That is why you back up first, update everything, test, and keep the old version selected in cPanel as an instant way back.

Where is the PHP setting in cPanel?

In the Software section, look for MultiPHP Manager or Select PHP Version. Which one you see depends on your host. If you see neither, ask your host to change it for you.

Can I use different PHP versions for different sites?

Yes. MultiPHP Manager and Select PHP Version set the version per domain, so you can test a newer version on a staging domain before you change the live site.

My site still shows the old PHP version after changing it. Why?

Clear your site and server caches and reload Tools → Site Health → Info → Server. If the old version still shows, look in your .htaccess file for an old AddHandler or SetHandler line that points to the previous version, or ask your host.

Does a newer PHP version make WordPress faster?

Usually yes. Each recent PHP release runs WordPress code faster and uses less memory than older ones, so pages can load and complete requests sooner, especially on busy sites.

Written by the AppGlut team. Last updated 10 November 2026. WordPress screenshots were taken on WordPress 7.1; diagrams are simplified illustrations because Google and your host change their screens often.

Leave A Comment