WordPress Logo – Athemeart WordPress Themes

How to Update PHP in WordPress: A Complete Step-by-Step Guide

The yellow “PHP Update Required” box in your WordPress dashboard is easy to put off. It looks like housekeeping, something to do “later”. In December 2026, “later” has a date: PHP 8.2 stops getting security fixes on December 31, 2026, and about half of all WordPress sites still run PHP 8.2 or older.

The good news is that updating PHP in WordPress is rarely hard. On most hosts the switch is one dropdown and one button. What keeps your site safe is the work around that click: a backup, a compatibility check, a short test on a staging copy and a rollback plan. This guide covers all of it. It explains how to update PHP in WordPress with cPanel, with the dashboards of five popular hosts and on a VPS running Nginx or Apache. It is current for PHP 8.6 and WordPress 7.2.

Quick answer: To update PHP in WordPress, (1) check your current version under Tools → Site Health → Info → Server; (2) take a full backup of files and database; (3) update WordPress core, your theme and plugins; (4) confirm they support the new version and test on staging; (5) change the PHP version in your hosting panel (MultiPHP Manager or Select PHP Version in cPanel, or your host’s PHP settings page); (6) re-check Site Health and click through your key pages. For most sites in late 2026, the best choice is PHP 8.4 or PHP 8.5.

Key takeaways

  • WordPress can’t upgrade PHP for you. PHP runs on your server, so you change it in your hosting panel or on the server itself.
  • PHP 8.1 and older are already end of life, and PHP 8.2 joins them on December 31, 2026. Treat both as urgent.
  • PHP 8.4 and 8.5 are the safest choices today. Wait on PHP 8.6 until you run WordPress 7.2 and your plugin vendors confirm support.
  • Most problems after a PHP upgrade come from old plugins or themes, not WordPress core. Test before you switch, and keep the old version one click away.
  • Switching back takes a minute on most hosts, which makes a PHP update one of the lowest-risk changes you can make to a WordPress site.

1. Why Should You Update PHP in WordPress?

WordPress keeps itself up to date with automatic background updates. PHP does not. PHP is server software that your host installs and maintains, and many hosts leave a site on whatever version it started with so that nothing breaks. Over the years that site drifts further behind, until the version it runs no longer receives security patches.

That drift is common. WordPress.org version statistics from November 2026 show the spread below. Developer Adam Greenough analysed those figures on November 28 and estimated that about 53% of WordPress sites will run a PHP version without official support on January 1, 2027, unless they upgrade before then.

PHP versions used by WordPress sites, November 2026Horizontal bar chart. PHP 7.4 and older: 19.1 percent. PHP 8.0 and 8.1: 12.0 percent. PHP 8.2: 22.1 percent. PHP 8.3: 28.3 percent. PHP 8.4 to 8.6: 18.5 percent.Which PHP versions do WordPress sites run? (Nov 2026)PHP 7.4 and older19.1% · end of lifePHP 8.0 – 8.112.0% · end of lifePHP 8.222.1% · EOL Dec 31, 2026PHP 8.328.3% · security onlyPHP 8.4 – 8.618.5% · fully supportedOrange and amber bars, about 53% of sites, will be on unsupported PHP on Jan 1, 2027 unless they upgrade.
WordPress PHP version share, based on WordPress.org statistics from November 2026.

Several things happened in 2026 that make a WordPress PHP upgrade more pressing than usual:

  • PHP 8.1 reached end of life on December 31, 2025, and PHP 8.2 follows on December 31, 2026, according to the official .
  • WordPress 7.0 raised the minimum PHP version to 7.4 and dropped PHP 7.2 and 7.3. Sites still on those versions stay on the WordPress 6.9 branch, as the core team explained when it announced it was .
  • Serious PHP vulnerabilities were patched twice in two months. In October the PHP2Shell flaws allowed remote code execution, and on November 19 another security release fixed several more remote code execution and memory-safety bugs. Our write-up on how we protected WordPress sites from PHP2Shell explains why outdated PHP builds were the weak spot.
  • PHP 8.6 was released on November 19, 2026, and WordPress 7.2, scheduled for December 8, 2026, is the first WordPress release built to run on it.

If your dashboard shows a PHP warning, or you don’t know which version you run, this is a good month to deal with it.

2. What Is PHP and Why Does WordPress Use It?

PHP is a server-side scripting language. WordPress core is written in it, and so is almost every theme and plugin you install. Your visitors never download PHP code. The server runs it and sends them the finished HTML.

PHP versions used by WordPress sites, November 2026Horizontal bar chart. PHP 7.4 and older: 19.1 percent. PHP 8.0 and 8.1: 12.0 percent. PHP 8.2: 22.1 percent. PHP 8.3: 28.3 percent. PHP 8.4 to 8.6: 18.5 percent.Which PHP versions do WordPress sites run? (Nov 2026)PHP 7.4 and older19.1% · end of lifePHP 8.0 – 8.112.0% · end of lifePHP 8.222.1% · EOL Dec 31, 2026PHP 8.328.3% · security onlyPHP 8.4 – 8.618.5% · fully supportedOrange and amber bars, about 53% of sites, will be on unsupported PHP on Jan 1, 2027 unless they upgrade.
WordPress PHP version share, based on WordPress.org statistics from November 2026.

Because every uncached page view passes through PHP, the PHP version affects how fast pages are built, how much memory they use and which security fixes protect them. Caching plugins reduce how often PHP runs, but logged-in users, carts, checkouts, searches and the admin area still run PHP on every request.

How PHP version numbers work

When people talk about the “version PHP WordPress” runs, they usually mean the middle number. Here’s what each part of a version string such as 8.5.13 means and who updates it:

Part Example What changes Who updates it
Major 8 (from 7) Big language changes. Old code can break. You choose, every several years
Minor (branch) 8.5 (from 8.3) New features and deprecations, plus a new support window You choose, ideally every one to two years
Patch (release) 8.5.13 (from 8.5.12) Bug and security fixes only Usually your host, automatically

So “how do I update my PHP in WordPress?” almost always means moving to a newer branch, for example from 8.2 to 8.4 or 8.5. Patch releases inside a branch are low risk and most managed hosts apply them for you.

Don’t confuse the PHP version with the WordPress version. They’re separate programs. Updating WordPress to 7.1 doesn’t change PHP, and changing PHP doesn’t update WordPress.

3. Why Updating PHP Is Important for WordPress Websites

The benefits of upgrading PHP in WordPress fall into four groups: speed, security, compatibility and stability.

Improved Website Performance and Speed

Each PHP branch makes the engine a little more efficient. How much you gain depends on what your site does. Kinsta’s independent PHP benchmarks, published in December 2025, measured requests per second on clean installs with no extra caching:

PHP versions used by WordPress sites, November 2026Horizontal bar chart. PHP 7.4 and older: 19.1 percent. PHP 8.0 and 8.1: 12.0 percent. PHP 8.2: 22.1 percent. PHP 8.3: 28.3 percent. PHP 8.4 to 8.6: 18.5 percent.Which PHP versions do WordPress sites run? (Nov 2026)PHP 7.4 and older19.1% · end of lifePHP 8.0 – 8.112.0% · end of lifePHP 8.222.1% · EOL Dec 31, 2026PHP 8.328.3% · security onlyPHP 8.4 – 8.618.5% · fully supportedOrange and amber bars, about 53% of sites, will be on unsupported PHP on Jan 1, 2027 unless they upgrade.
WordPress PHP version share, based on WordPress.org statistics from November 2026.

Two things stand out in those numbers:

  • A simple blog gains a little. Going from PHP 7.4 to 8.5 gave about 6.6% more requests per second. That helps, but it won’t transform a slow site.
  • A WooCommerce store gains a lot. Throughput rose about 24% on PHP 8.2 and about 61% on PHP 8.5 compared with 7.4. Kinsta links part of the 8.5 jump to a smaller page response in that test, so treat the exact figure with care. The direction is clear, though: dynamic, plugin-heavy pages benefit most.

A faster PHP engine also means fewer PHP workers are busy at once during traffic spikes, which lowers the risk of 502 and 504 errors on shared and cloud plans. For more speed after the upgrade, pair it with an object cache. Our guide to setting up Redis object cache in WordPress covers that.

Better Website Security

Every PHP branch gets about two years of active support and then two years of security-only fixes. After that it’s end of life (EOL): new vulnerabilities in it are never fixed by the PHP project. Some hosts and Linux distributions backport patches to old builds, but you usually can’t check whether yours does, and plugin developers stop testing on those versions anyway.

2026 showed how this plays out. When the PHP2Shell remote code execution flaws (CVE-2026-109618 and CVE-2026-109619) were disclosed on October 21, fixes shipped for the supported branches, including 8.5.12, 8.4.27 and 8.3.36. Sites on 7.4 or 8.0 had no upstream patch to install. A month later, the November 19 releases (8.2.36, 8.3.37, 8.4.28 and 8.5.13) closed several more remote code execution and use-after-free bugs. Staying on a supported branch is what puts those fixes on your server.

WordPress Compatibility

WordPress supports old PHP versions for a long time, but the ecosystem around it moves faster:

  • WordPress core requires at least PHP 7.4 from version 7.0 onward.
  • Plugins and themes declare a minimum with a “Requires PHP” header. WordPress won’t install or update a plugin that needs a newer PHP than your server has, so an old PHP version can quietly freeze your plugins on outdated releases, security fixes included.
  • Libraries that plugins bundle, such as Composer packages, payment SDKs and PDF generators, often drop old PHP versions before WordPress does.

PHP 8 compatibility with WordPress core itself is excellent. The gaps are in older plugins, themes and custom snippets. Good WordPress PHP compatibility is therefore about more than core: it keeps your whole stack updatable.

Bug Fixes and Stability

During a branch’s active-support years, the PHP team fixes ordinary bugs as well as security issues: memory leaks, crashes, wrong results from date or string functions. In the security-only phase, ordinary bugs stay unfixed. A branch in active support, which means PHP 8.4, 8.5 or 8.6 as of December 2026, gets both kinds of fixes.

The WordPress PHP requirements mention three different numbers, and they mean different things:

  • Minimum supported: PHP 7.4. WordPress 7.0 and later will still run on it, but 7.4 has been end of life since November 2022.
  • Officially recommended: PHP 8.3 or greater. That’s the baseline on the WordPress requirements page.
  • Recommended for production: PHP 8.4 or later. That’s the advice for hosts in the WordPress Hosting Handbook, which also lists PHP 8.5 as fully supported from WordPress 6.9.

Here’s where each branch stands in December 2026:

PHP version Released Active support until Security fixes until Status (Dec 2026) Our advice
PHP 8.6 Nov 19, 2026 Dec 31, 2028 Dec 31, 2030 Active, brand new Test first; needs WordPress 7.2
PHP 8.5 Nov 20, 2025 Dec 31, 2027 Dec 31, 2029 Active Best choice for up-to-date sites
PHP 8.4 Nov 21, 2024 Dec 31, 2026 Dec 31, 2028 Active Safest choice for plugin-heavy sites
PHP 8.3 Nov 23, 2023 Dec 31, 2025 Dec 31, 2027 Security fixes only Fine for now; plan your next move
PHP 8.2 Dec 8, 2022 Dec 31, 2024 Dec 31, 2026 EOL in weeks Upgrade now
PHP 8.1 and older 2021 or earlier Ended Ended End of life Upgrade immediately
PHP support timeline, PHP 8.1 to 8.6Timeline from 2022 to 2031 showing active support in green and security-only support in amber for PHP 8.1 through 8.6, with a marker for December 2026.PHP support timelinePHP 8.1PHP 8.2PHP 8.3PHP 8.4PHP 8.5PHP 8.6EOL Dec 31, 2025Today: Dec 20262022202320242025202620272028202920302031Active support (bug and security fixes)Security fixes onlyEnded
PHP branches get two years of active support and two years of security fixes. Dates from php.net.

Which WordPress versions support which PHP versions?

PHP version compatibility with WordPress depends on your WordPress release. Newer PHP support isn’t added to old WordPress branches, so update WordPress before you upgrade PHP. This table follows the core team’s PHP compatibility reference:

WordPress version PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5 PHP 8.6
7.2 (due Dec 8, 2026) ✅ ✅ ✅ ✅ ✅
6.9 – 7.1 ✅ ✅ ✅ ✅ ❌
6.7 – 6.8 ✅ ✅ ✅ ❌ ❌
6.4 – 6.6 ✅ ✅ ❌ ❌ ❌
6.1 – 6.3 ✅ ❌ ❌ ❌ ❌

Our recommendation

Choose PHP 8.5 if…

  • you run WordPress 6.9 or newer
  • your theme and plugins are actively maintained
  • you run WooCommerce and want the biggest speed gain
  • you want security fixes until the end of 2029

Choose PHP 8.4 if…

  • you use many plugins, including a few older ones
  • a premium plugin vendor hasn’t confirmed PHP 8.5 yet
  • you want a proven branch with fixes until the end of 2028
  • you’re jumping from PHP 7.4 and want a smaller step first

And the latest PHP version for WordPress, PHP 8.6? It’s an option once you run WordPress 7.2 and have tested properly. The core team found almost 9,000 calls to spl_object_hash(), a function PHP 8.6 deprecates, in more than 2,300 directory plugins. Deprecations log warnings rather than break sites, but they show how much of the ecosystem still needs updates. For a business site, 8.5 is the sensible choice this winter. Revisit 8.6 in a few months.

5. How to Check Your Current PHP Version in WordPress

Before you change anything, find out where you are. Here are four ways to check PHP version in WordPress, from easiest to most technical.

Check PHP Version from WordPress Dashboard

  1. Log in to your WordPress admin area.
  2. Go to Tools → Site Health.
  3. Open the Info tab.
  4. Expand the Server section and look for PHP version.
WordPress Site Health Info tab showing the PHP versionMockup of the WordPress admin with Tools selected. The Site Health Info tab is open and the Server section lists the PHP version, 8.3.37, highlighted.example.com/wp-admin/site-health.php?tab=debugDashboardPostsMediaPagesCommentsAppearancePluginsUsersToolsSettingsSite HealthStatusInfoServer▲Server architectureLinux 6.8.0 x86_64Web servernginx/1.28.0PHP version8.3.37 (Supports 64bit values)PHP SAPIfpm-fcgiPHP max input variables3000PHP time limit120PHP memory limit512MYour currentPHP version
Tools → Site Health → Info → Server shows the PHP version the web server actually uses (illustration).

The Status tab tells you whether WordPress thinks your version is outdated. It compares your version with data from WordPress.org, and the same check drives the “PHP Update Required” dashboard notice. The Server section also lists your PHP memory limit, time limit and SAPI, which are useful to note before a switch.

Check PHP Version Using cPanel

In cPanel, scroll to the Software section and open MultiPHP Manager. It lists every domain on the account with its PHP version. On CloudLinux-based hosts you may see Select PHP Version instead, which shows the current version at the top of the page. Newer cPanel versions also show each domain’s PHP version in the Websites overview.

Check PHP Version Using a PHP Info File

If you can’t reach the dashboard (for example, the site is already broken), create a small file in your site’s root folder with File Manager or SFTP:

<?php
// php-check.php: shows the PHP version the web server uses.
// Delete this file as soon as you have read the result!
echo 'PHP ' . PHP_VERSION . ' (' . PHP_SAPI . ')';

Open https://yourdomain.com/php-check.php in your browser. If you need every setting and loaded extension, replace the echo line with phpinfo();.

Security note: a full phpinfo() page reveals server paths, extensions and configuration that attackers find useful. Give the file a hard-to-guess name and delete it right after use.

Bonus: Check PHP Version From the Command Line (SSH or WP-CLI)

# PHP version of the command line (CLI)
php -v

# Which PHP binary and version WP-CLI runs on
wp --info

# Every PHP version installed on a Debian/Ubuntu server
ls /etc/php/

Watch out for one common trap: the CLI version and the website version can differ. A server can run PHP 8.5 for the website through PHP-FPM while php -v still reports 8.3. Site Health and the PHP info file show what your visitors get. php -v shows what cron jobs and WP-CLI use.

Optional: Show the PHP Version in Your Admin Footer

If you manage several sites, this small must-use plugin prints the PHP version in the bottom-right corner of every admin screen. Save it as wp-content/mu-plugins/show-php-version.php:

<?php
/**
 * Plugin Name: Show PHP Version in Admin Footer
 * Description: Adds the running PHP version next to the WordPress version.
 */
add_filter( 'update_footer', function ( $content ) {
	return sprintf( 'PHP %s &middot; %s', esc_html( PHP_VERSION ), $content );
}, 20 );

6. Things to Do Before Updating PHP in WordPress

Ten minutes of preparation is what turns a PHP upgrade from a gamble into routine maintenance. This is the workflow we use on client sites:

Safe PHP upgrade workflow for WordPressSeven steps: back up, update core, themes and plugins, check PHP compatibility, test on staging, switch the PHP version, verify the site, and watch the logs for 48 hours. An arrow from verify back to switch means roll back if broken.Safe PHP upgrade workflow1234567Back upfiles + databaseUpdate core,themes, pluginsCheck PHPcompatibilityTest onstagingSwitch PHPversionVerify site+ Site HealthWatch logsfor 48 hoursRoll back if brokenDo steps 1 to 4 a day ahead, so that if something breaks you know it was the PHP switch and not an update.
The seven-step workflow for a safe WordPress PHP upgrade.

Back Up Your WordPress Website

Your backup needs two parts: the database (posts, settings, orders, users) and the files (wp-content, wp-config.php, and any .htaccess, .user.ini or php.ini files). Use whichever method you trust most:

  • Your host’s snapshot or backup tool. Usually the fastest to restore.
  • A backup plugin such as UpdraftPlus that sends a copy to cloud storage.
  • WP-CLI over SSH, if you have shell access:
# 1. Export the database
wp db export ~/backups/db-$(date +%F).sql

# 2. Archive the WordPress files (adjust the path to your site)
tar -czf ~/backups/files-$(date +%F).tar.gz -C /var/www/example.com public_html

# 3. Check both files exist and aren't empty
ls -lh ~/backups/

Keep at least one copy off the server. A backup stored only on the machine you’re about to change isn’t much of a safety net.

Update WordPress Core, Themes, and Plugins

Older versions of WordPress and plugins are the main cause of PHP upgrade problems, and newer PHP support is never added to old releases. Update in this order:

  1. WordPress core, to 7.1 or newer (7.2 if you plan to use PHP 8.6).
  2. Plugins, especially page builders, WooCommerce and its extensions, security, caching and SEO plugins.
  3. Your theme and parent theme. If you edited the theme directly instead of using a child theme, read our guide on how to upgrade a WordPress theme without losing customizations first.

Do this a day before the PHP switch. In any WordPress upgrade, PHP should change last: if something breaks, you’ll know whether the updates or the new PHP version caused it.

Check Theme and Plugin PHP Compatibility

There’s no single button that guarantees compatibility, so combine these checks:

  • Read the “Requires PHP” and “Tested up to” details on each plugin’s WordPress.org page, and look for PHP 8.4 or 8.5 in recent changelogs.
  • Watch for abandoned plugins. WordPress.org shows a warning on plugins that haven’t been tested with the last three major WordPress releases. Those are the most likely to fail on new PHP, so replace them.
  • Check premium plugins and themes with the vendor. If a product is encoded with ionCube, the host also needs an ionCube Loader for the new PHP version, and loaders sometimes arrive weeks after a PHP release.
  • Don’t forget custom code. Snippets in functions.php, must-use plugins and code-snippet plugins are often the oldest PHP on a site.
  • Use scanners carefully. The long-popular WP Engine PHP Compatibility Checker is no longer actively maintained, and its scan only goes up to PHP 8.0, so a clean result says nothing about 8.4 or 8.5. Some hosts include their own checker (Hostinger shows one in its WordPress overview), and a few newer directory plugins scan for PHP 8.x issues.

If you’re comfortable with the command line, PHPCompatibilityWP (the ruleset WordPress core itself uses) can scan a plugin or theme folder for code that breaks or is deprecated on a target version:

# Set up a throwaway scanner folder
mkdir ~/php-scan && cd ~/php-scan
echo '{}' > composer.json
composer config minimum-stability alpha
composer config prefer-stable true
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require dealerdirect/phpcodesniffer-composer-installer "phpcompatibility/phpcompatibility-wp:^3.0@alpha"

# Scan all plugins for problems on PHP 8.5 and newer
vendor/bin/phpcs -p /var/www/example.com/public_html/wp-content/plugins \
  --standard=PHPCompatibilityWP --runtime-set testVersion 8.5- \
  --extensions=php --report=summary

Static scanners give false positives and miss runtime problems, so use the report as a to-do list for your staging test, not as a final verdict.

Also check two easy-to-miss settings:

  • PHP extensions. WordPress needs mysqli and works best with curl, dom, exif, fileinfo, imagick or gd, intl, mbstring, openssl, xml and zip. Plugins may also need redis, soap, bcmath or sodium. A new PHP version doesn’t always come with the same extensions turned on.
  • Your WordPress PHP configuration. Values such as memory_limit, upload_max_filesize, post_max_size, max_execution_time and max_input_vars are saved per PHP version on some panels, so a new version can start with low defaults. Write your current values down and re-apply them. Our guide on increasing the maximum upload file size shows where each setting lives.

Test Your Website in a Staging Environment

A staging site is a private copy of your site where you can switch PHP without visitors noticing. Options, from easiest to most hands-on:

  • One-click staging from your host. Many hosts, including SiteGround, Kinsta, WP Engine and GoDaddy Managed WordPress, include it. Some let you set a different PHP version on the staging copy.
  • A local copy in a desktop tool such as Local or DevKinsta, where you choose the PHP version per site.
  • WordPress Playground, which runs WordPress in your browser on a PHP version you pick. It’s handy for quickly testing a single plugin.

On the staging copy, switch to your target PHP version with WP_DEBUG_LOG turned on (shown in section 11), then work through this list:

  • Home page, a blog post, a page and an archive load without errors
  • You can log in, open the dashboard and edit a post in the block editor
  • Contact forms send email
  • WooCommerce: add to cart, checkout with a test payment, and the order emails arrive
  • Image upload and thumbnail generation work
  • Page builder pages open in the builder and save
  • Search, filters, memberships and anything else custom behaves normally
  • wp-content/debug.log shows no new fatal errors

7. How to Update PHP in WordPress Using cPanel

cPanel is the most common hosting control panel, so most site owners do their PHP version update in cPanel. Depending on your host you’ll see one or both of these tools:

Tool Where it comes from Version names look like Good to know
MultiPHP Manager Built into cPanel PHP 8.5 (ea-php85) Sets the version per domain or subdomain
Select PHP Version CloudLinux PHP Selector, common on shared hosting 8.5 (alt-php85) Also manages extensions and php.ini options per version

If your host offers both, follow its documentation. On many CloudLinux servers, Select PHP Version only takes effect while MultiPHP Manager leaves the domain on the system default, so if a change in one tool seems to do nothing, check the other.

Step 1: Log in to Your Hosting cPanel

Open cPanel from your host’s dashboard, or go to https://yourdomain.com:2083 and log in with your cPanel username and password.

Step 2: Open MultiPHP Manager or Select PHP Version

Scroll to the Software section, or type “PHP” into cPanel’s search bar, and click MultiPHP Manager or Select PHP Version.

Changing the PHP version in cPanel MultiPHP ManagerMockup of MultiPHP Manager. Step 1: tick the domain example.com. Step 2: choose PHP 8.5 (ea-php85) from the PHP Version dropdown. Step 3: click Apply.Hosting Control Panel › Software › MultiPHP ManagerMultiPHP ManagerSystem PHP Version:PHP 8.3 (ea-php83)Set PHP Version per DomainPHP VersionPHP 8.5 (ea-php85)▼ApplyDomainRequested PHP VersionPHP-FPMexample.comPHP 8.3 (ea-php83)Onshop.example.comPHP 8.2 (ea-php82)Onstaging.example.comPHP 8.5 (ea-php85)On1231Tick the domain ·2Pick the new PHP version ·3Click Apply
Changing a domain’s PHP version in MultiPHP Manager: tick, choose, apply (illustration).

Step 3: Choose the Recommended PHP Version

To update PHP version in cPanel’s MultiPHP Manager: tick the checkbox next to your domain, choose the new version (for example PHP 8.5 (ea-php85)) from the PHP Version dropdown, and click Apply.

In Select PHP Version: choose the version from the Current PHP version dropdown and click Set as current (or Apply). Then open the Extensions tab and make sure the extensions your site used before are ticked. The Options tab holds values such as memory_limit for that version.

Step 4: Apply Changes and Verify the Update

The change usually takes effect within a minute. Clear any page cache (your caching plugin, the host’s cache or your CDN), reload Tools → Site Health → Info → Server and confirm the new number. Then go through the checklist from your staging test on the live site.

Alternative: Change the PHP Version With .htaccess

On Apache and LiteSpeed servers that use cPanel, MultiPHP Manager works by writing a small “handler” block into your .htaccess file. It looks like this:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the "ea-php85" package as the default "PHP" programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php85 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Handler names are different on every platform. CloudLinux, LiteSpeed and some hosts use names such as application/x-httpd-alt-php85. A wrong handler can trigger a 500 error or make the browser download your PHP files, so let the panel write this block when you can. Our WordPress .htaccess guide explains how to edit the file safely and restore the default version.

Using Plesk Instead of cPanel?

Open Websites & Domains, select your domain and click PHP (labelled PHP Settings in older versions). Pick the new version from the PHP version menu, keep an FPM handler if one is available, and click OK or Apply.

8. How to Update PHP in WordPress Using Different Hosting Providers

Many hosts hide cPanel behind their own dashboard. Here’s how to change PHP version in hosting dashboards from five popular providers. Menu names change from time to time, so each section links to the host’s own instructions.

Update PHP in Hostinger

  1. Log in to hPanel and go to Websites.
  2. Click Dashboard next to your website.
  3. In the sidebar, open PHP Configuration (under Advanced).
  4. Select the PHP version you want and click Update.

The change takes a couple of minutes. It applies to every website on the hosting plan (sites built with Hostinger’s website builder excepted), so test all of them afterwards. Hostinger’s WordPress → Overview page also flags an incompatible PHP version and offers a Change button. See Hostinger’s guide to changing the PHP version of a hosting plan.

Update PHP in Bluehost

  1. Log in to the Bluehost Account Manager (portal).
  2. Click Websites in the left menu, then Manage next to your site.
  3. Open the Advanced tab.
  4. In the PHP Version tile, click Change PHP Version, choose the version and confirm.

Prefer cPanel? Go to Hosting → cPanel → Software → MultiPHP Manager and follow section 7. VPS and dedicated customers change PHP in WHM with EasyApache 4 and MultiPHP Manager. Bluehost’s PHP configuration help page has screenshots of each layout.

Update PHP in SiteGround

  1. In Websites, click Site Tools next to your site.
  2. Go to Devs → PHP Manager.
  3. Click the pencil icon (Change PHP version).
  4. Choose Change PHP Version Manually, select the version and confirm.

SiteGround also offers Managed PHP, which moves your site to newer PHP versions automatically after an email notice. It’s convenient for simple sites. For stores and plugin-heavy sites, a manual version gives you control over when the change happens. SiteGround explains both options in its Managed PHP article.

Update PHP in GoDaddy

Web Hosting (cPanel):

  1. Open your GoDaddy product page and select Manage next to the hosting account.
  2. Open the Settings tab.
  3. Under Server Settings, select Change next to PHP Version.
  4. Choose the version, select Continue, then Save Changes.

Managed Hosting for WordPress: go to My Products → Managed Hosting for WordPress → Manage All, open Settings from the site’s menu, select Change next to PHP version under Production Site, choose the version and Save Changes. GoDaddy recommends trying the change on the staging site first. Details are in GoDaddy’s PHP version help article.

Update PHP in Cloudways

Per application (servers launched from August 8, 2026):

  1. Open Applications and select your WordPress app.
  2. Go to Application Settings → PHP Settings.
  3. Click the edit icon next to PHP Version, read the notice, choose the version and save.

Per server (older servers): open Servers, select the server, go to Settings & Packages → Packages, change the PHP version and save. This changes PHP for every application on that server, so test them all. At the time of writing, Cloudways’ documentation lists versions up to PHP 8.4, with 8.5 promised before the end of 2026. Check the dropdown on your server and see the Cloudways guide to changing the PHP version per application.

Other Hosts

Most other hosts use one of a few labels: PHP Manager, PHP Configuration, PHP Settings, PHP Selector, Select PHP Version or MultiPHP. On managed WordPress hosts such as Kinsta, the WordPress hosting PHP version setting usually sits in the site’s Tools or Settings page. If you can’t find it, search your host’s help center for “change my PHP version”.

How to Update PHP Version in WordPress Without cPanel

No cPanel? You still have options:

  • Your host’s own dashboard. Hostinger, SiteGround, GoDaddy Managed WordPress and Cloudways (above) all change PHP without cPanel.
  • The .htaccess handler method, if your host documents the handler name.
  • The command line on a VPS or dedicated server (next section).
  • Ask your host. Support teams switch PHP versions all the time. Here’s a message you can copy:

Hi, please switch the PHP version for example.com from PHP 8.2 to PHP 8.5 (or 8.4 if 8.5 isn’t available). Please keep these extensions enabled: mysqli, curl, gd/imagick, intl, mbstring, xml, zip, and redis if it’s installed. Please also carry over my current memory_limit and upload limits. I have a fresh backup. Let me know the exact time of the change so I can test right away. Thanks!

Can you update PHP from inside the WordPress dashboard? Not directly. There’s no setting to change PHP version in WordPress itself, because WordPress has no control over server software. The “Learn more about updating PHP” button links to the official Update PHP guide, and hosts can replace that link, or add a direct upgrade button, with their own instructions. If your host doesn’t offer a supported PHP version at all, it’s time to migrate your WordPress site to a new host.

9. How to Update PHP Version on a VPS or Dedicated Server

On a server you manage yourself, PHP is a set of operating-system packages, and a WordPress PHP upgrade happens in four moves:

  1. Install the new PHP branch alongside the old one. Both can run at the same time.
  2. Copy your extensions and custom settings to the new version.
  3. Point Nginx or Apache at the new PHP-FPM service and reload. Visitors don’t notice.
  4. Keep the old version installed for a week so you can switch back in seconds.

Start by checking which PHP your operating system ships, because that decides whether you need an extra repository:

Operating system Default PHP What to do
Ubuntu 26.04 LTS PHP 8.5 Install from the default repositories
Ubuntu 24.04 LTS PHP 8.3 Fine for now, or add the ondrej/php PPA for 8.4 or 8.5
Ubuntu 22.04 LTS PHP 8.1 Add the ondrej/php PPA and move to 8.4 or 8.5
Debian 13 (Trixie) PHP 8.4 Install from the default repositories, or use the Sury repository for 8.5
Debian 12 (Bookworm) PHP 8.2 Add the Sury repository and move to 8.4 or 8.5

Distribution security teams often backport fixes to the PHP builds they ship. Even so, plugin developers test against current upstream branches, so a modern branch is still the better choice for WordPress.

Update PHP on Ubuntu

# Ubuntu 26.04 LTS: PHP 8.5 is in the default repositories
sudo apt update
sudo apt install php8.5-fpm php8.5-cli php8.5-mysql php8.5-curl php8.5-gd \
  php8.5-imagick php8.5-intl php8.5-mbstring php8.5-xml php8.5-zip \
  php8.5-bcmath php8.5-redis

# Ubuntu 24.04 / 22.04: add Ondřej Surý's PPA first, then run the same install
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update

# Confirm the new PHP-FPM service is running
systemctl status php8.5-fpm --no-pager

Don’t add the Launchpad PPA on Ubuntu 26.04. It doesn’t publish packages for that release. If you need a branch other than 8.5 there, such as 8.4 or 8.6, follow the current instructions on deb.sury.org for the packages.sury.org repository.

Update PHP on Debian

# Add the Sury PHP repository (Debian 12 or 13)
sudo apt-get update
sudo apt-get -y install lsb-release ca-certificates curl
sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt-get update

# Install PHP 8.5 with the usual WordPress extensions
sudo apt-get install php8.5-fpm php8.5-cli php8.5-mysql php8.5-curl php8.5-gd \
  php8.5-imagick php8.5-intl php8.5-mbstring php8.5-xml php8.5-zip php8.5-redis

On Debian 13 you can skip the repository and install php8.4-fpm and friends straight from Debian if PHP 8.4 is enough for you.

Carry Over Extensions and Custom Settings

# Compare loaded extensions between the old and new versions
php8.3 -m | sort > /tmp/ext-old.txt
php8.5 -m | sort > /tmp/ext-new.txt
diff /tmp/ext-old.txt /tmp/ext-new.txt    # lines starting with "<" are missing in 8.5

# Copy your custom php.ini overrides and PHP-FPM pool settings
sudo cp /etc/php/8.3/fpm/conf.d/99-custom.ini /etc/php/8.5/fpm/conf.d/
sudo diff /etc/php/8.3/fpm/pool.d/www.conf /etc/php/8.5/fpm/pool.d/www.conf

Pool settings such as pm.max_children, the user and group, and the socket path live in www.conf (or one file per site). Copy your tuned values over instead of replacing the whole file, because each PHP version writes its own socket path there.

Update PHP Using Nginx

Nginx hands PHP requests to PHP-FPM through a socket. Switching versions means changing one line in your site’s server block:

# /etc/nginx/sites-available/example.com
location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    # fastcgi_pass unix:/run/php/php8.3-fpm.sock;   # old
    fastcgi_pass unix:/run/php/php8.5-fpm.sock;     # new
}
sudo systemctl enable --now php8.5-fpm
sudo nginx -t && sudo systemctl reload nginx

If your config points at the generic /run/php/php-fpm.sock, run ls -l /run/php/ to see which version it links to. A wrong or missing socket shows up as a 502 Bad Gateway error.

Update PHP Using Apache

# Apache with PHP-FPM (recommended)
sudo a2enmod proxy_fcgi setenvif
sudo a2disconf php8.3-fpm
sudo a2enconf php8.5-fpm
sudo systemctl reload apache2

# Apache with mod_php (prefork MPM)
sudo a2dismod php8.3
sudo a2enmod php8.5
sudo systemctl restart apache2

Apache with PHP-FPM lets several PHP versions run side by side, and you can assign them per virtual host. With mod_php, the whole server uses one version. If your server still uses mod_php, a PHP upgrade is a good moment to move to PHP-FPM.

Switch the Command-Line PHP Too

Cron jobs, WP-CLI and Composer use the CLI version, not the web version. Point them at the new branch so everything runs on the same PHP:

sudo update-alternatives --set php /usr/bin/php8.5
php -v
wp --info | grep -i "php version"

Using WHM, a Server Panel or Docker?

  • cPanel/WHM: in EasyApache 4, customize your profile, tick ea-php85 and the extensions you need, and provision. Then set the version per domain in WHM’s MultiPHP Manager.
  • Server panels such as CloudPanel, RunCloud, SpinupWP or Ploi: each site has a PHP version dropdown in its settings, and the panel handles the FPM pool for you.
  • Docker: change the image tag, for example from php:8.3-fpm or wordpress:php8.3-fpm to the matching 8.5 tag, rebuild, and redeploy. Test on a staging stack first.

Once the site has run cleanly for a week, stop the old service with sudo systemctl disable --now php8.3-fpm, and remove its packages if you’re sure nothing else on the server uses them.

10. How to Verify Your WordPress PHP Version After Updating

Don’t assume the switch worked. Confirm it in three places:

  1. Site Health: Tools → Site Health → Info → Server should show the new version. The Status tab should no longer recommend a PHP update.
  2. The web server itself: load your temporary php-check.php file (see section 5), then delete it.
  3. The command line, if you use cron or WP-CLI:
# Web PHP version, if the server sends the header (often hidden on purpose)
curl -sI https://example.com/ | grep -i x-powered-by

# CLI version used by WP-CLI and cron
wp --info

# Run scheduled events now and watch for errors
wp cron event run --due-now

# Follow the logs while you click around the site
tail -f wp-content/debug.log
sudo tail -f /var/log/php8.5-fpm.log /var/log/nginx/error.log

Then repeat the staging checklist from section 6 on the live site: pages, login, editor, forms, checkout, uploads and search. For the next 48 hours, keep an eye on the error log, uptime alerts, failed WooCommerce orders and missing emails. Problems in rarely used features tend to show up a day later, when a cron job or a customer finally triggers them.

11. Common Problems After Updating PHP in WordPress and How to Fix Them

Most issues after a WordPress PHP upgrade come from a single outdated plugin, theme or snippet. Use this flowchart to find the culprit and fix WordPress PHP errors quickly:

Troubleshooting a WordPress site after a PHP upgradeFlowchart. Site broken after switching PHP. If you can log in to wp-admin, deactivate plugins and test a default theme. If not, use the recovery mode email or rename the plugin folder. Then enable WP_DEBUG_LOG and read debug.log. If updating or replacing the culprit fixes it, keep the new PHP version and monitor. If not, roll back PHP and fix on staging.White screen, 500 or fatal errorafter switching PHP?Can you log into wp-admin?Deactivate all plugins, thenre-enable them one by one.Also test a default theme.Use the recovery mode emaillink, or rename the pluginfolder via SFTP or SSH.Enable WP_DEBUG_LOG and readwp-content/debug.logFixed by updating orreplacing the culprit?Done: keep the new PHPand watch logs for 48 hoursRoll back PHP, then fixon staging (with a deadline)YESNOYESNO
A quick decision path for fixing WordPress PHP errors after an upgrade.

WordPress White Screen of Death

A blank page means PHP hit a fatal error before WordPress could print anything. Since WordPress 5.2, fatal-error protection usually catches it and emails the site admin a recovery mode link. That link lets you log in with the broken plugin or theme paused. If the email doesn’t arrive, turn on logging in wp-config.php, above the line that says “That’s all, stop editing!”:

// Log errors to wp-content/debug.log without showing them to visitors
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

Reload the broken page, then open wp-content/debug.log. The file path in the “PHP Fatal error” line, such as wp-content/plugins/old-slider/…, names the culprit. Set WP_DEBUG back to false when you’re done. The WordPress lists every option. For causes that have nothing to do with PHP versions, see our full guide to fixing the WordPress white screen of death.

Plugin or Theme Compatibility Errors

Once you know which plugin or theme fails, turn it off. You can do this without the dashboard:

# With WP-CLI: deactivate every plugin without loading them
wp plugin deactivate --all --skip-plugins --skip-themes

# Re-enable one at a time and reload the site after each
wp plugin activate woocommerce --skip-plugins --skip-themes

# Switch to a default theme to rule out the theme
wp theme activate twentytwentyfive --skip-plugins --skip-themes

# Without WP-CLI: rename a single plugin folder over SFTP/SSH
mv wp-content/plugins/old-slider wp-content/plugins/old-slider.off

Then update the plugin, ask its developer for a compatible release, or replace it. Here are the PHP errors we see most often after an upgrade:

Error message (shortened) What it means Fix
Call to undefined function create_function() or each() Functions removed in PHP 8.0; the code is very old Update or replace the plugin or theme
count(): Argument #1 must be of type Countable|array PHP 8 throws an error where PHP 7 only warned Update the plugin; developers should check the value before counting it
Your PHP installation appears to be missing the MySQL extension mysqli isn’t enabled for the new version Enable it in Select PHP Version → Extensions, or install php8.5-mysql
Allowed memory size of … bytes exhausted The new version started with a lower memory_limit Re-apply your old memory limit
…was encoded by the ionCube Encoder and requires a loader No ionCube Loader for the new PHP version Ask your host to install it, or stay one version back for now
Deprecated: Creation of dynamic property … is deprecated PHP 8.2 deprecation; only a notice Hide notices on production; the developer declares the property
Deprecated: Implicitly marking parameter … as nullable PHP 8.4 deprecation; only a notice Same as above; the fix is a ? before the type

Deprecation notices don’t break a site by themselves. If they’re displayed, though, they can corrupt AJAX and REST API responses or cause “headers already sent” warnings. Keep WP_DEBUG_DISPLAY off on production. If you maintain custom code, these two fixes clear the most common PHP 8.x notices:

// PHP 8.2: declare properties instead of creating them on the fly
class My_Widget {
	public $settings = array(); // was assigned without being declared
}

// PHP 8.4: make nullable parameters explicit
function my_render( ?string $title = null ) { // was: string $title = null
	// ...
}

Internal Server Error (500)

A generic 500 error after a PHP switch usually has one of these causes: a wrong or leftover handler line in .htaccess, a PHP extension that isn’t enabled, a PHP-FPM pool that didn’t start, or a setting such as memory_limit that reverted to a low default. The web server’s error log (in cPanel: Metrics → Errors) normally names the cause. Our step-by-step guide to the 500 Internal Server Error covers the other common causes.

PHP Fatal Errors

A fatal error stops PHP immediately. After an upgrade, the usual reasons are removed functions, stricter type checks, missing extensions and encoded files without a matching loader (see the table above). The fix is always the same: read the log, identify the file, and update, replace or patch the code it belongs to. If the culprit is business-critical and no fix exists yet, roll back (next section) and set a deadline to replace it.

Website Not Loading After PHP Upgrade

  • 502 Bad Gateway or 503 errors (Nginx): the new PHP-FPM service isn’t running, or fastcgi_pass points to the wrong socket.
  • The browser downloads a .php file: the web server no longer passes PHP files to PHP, usually because of a wrong handler. Remove or correct the handler block in .htaccess, or re-save the version in your panel.
  • You still see the old version or old errors: clear page, server and CDN caches, and restart PHP-FPM to reset OPcache.
  • “Your server is running PHP version X but WordPress requires at least 7.4”: you switched to a version that’s too old, usually by picking the wrong item in the dropdown.

For other error messages, our list of common WordPress errors and how to fix them is a good next stop.

12. How to Roll Back to an Older PHP Version

Rolling back is the same procedure in reverse, and it doesn’t touch your content. Changing PHP doesn’t modify your database, so you rarely need to restore a backup. Do that only if a plugin damaged data while it was failing.

  • cPanel, Hostinger, Bluehost, SiteGround, GoDaddy, Cloudways: repeat the steps for your host and choose the previous version. In Select PHP Version, check the Extensions tab again afterwards.
  • .htaccess handler: change the version number in the handler line back, or restore the copy of .htaccess you saved before the change.
  • VPS with Nginx or Apache: point back to the old socket or config, which is still installed:
# Nginx: switch the socket back and reload (no downtime)
sudo sed -i 's#php8.5-fpm.sock#php8.3-fpm.sock#' /etc/nginx/sites-available/example.com
sudo nginx -t && sudo systemctl reload nginx

# Apache with PHP-FPM
sudo a2disconf php8.5-fpm && sudo a2enconf php8.3-fpm && sudo systemctl reload apache2

Treat a rollback as temporary. If you rolled back to PHP 8.2 or older, you’re back on a version that gets no security fixes from January 2027. Write down which plugin blocked the upgrade, contact its developer or pick a replacement, and plan the next attempt within days, not months.

13. Best Practices for Maintaining Your WordPress PHP Version

  • Upgrade on a schedule. A new PHP branch arrives every November. A good rhythm is to move to the previous year’s branch early each year, once it has had several patch releases.
  • Know your end-of-life dates (see the calendar below) and put them in your calendar with a 60-day reminder.
  • Keep a staging site and run every PHP change there first.
  • Choose maintained plugins and themes. Fewer, well-supported plugins make every PHP upgrade easier.
  • Let your host apply patch releases, and check from time to time that it does. Site Health shows the full version, for example 8.5.13.
  • Use PHP-FPM with OPcache rather than older handlers, for speed and per-site isolation.
  • Write down custom PHP settings and extensions so a version switch never resets them by surprise.
  • Check your security after big changes. Our free WordPress security audit tool flags outdated software and common misconfigurations in minutes.
  • Agencies: keep an inventory. Record the PHP version of every client site, so that when the next end-of-life date or emergency patch comes, you know which sites need attention first.

PHP and WordPress maintenance calendar

Date Event What to do
Dec 8, 2026 WordPress 7.2 scheduled, with PHP 8.6 support Update WordPress before testing PHP 8.6
Dec 31, 2026 PHP 8.2 reaches end of life; PHP 8.4 moves to security-only Leave PHP 8.2 and older now
Late Nov 2027 Next PHP release expected Start testing on staging in the new year
Dec 31, 2027 PHP 8.3 reaches end of life; PHP 8.5 moves to security-only Move from PHP 8.3 to 8.5 or newer during 2027
Dec 31, 2028 PHP 8.4 reaches end of life Move from PHP 8.4 during 2028

The PHP team publishes what changed in each release, and the PHP 8.6 release page is a good place to see what’s coming to WordPress hosting over the next year.

14. Frequently Asked Questions (FAQs)

Does updating PHP affect my WordPress website?

It affects how your site runs, not what it contains. Posts, pages, products, users and settings stay the same, because changing PHP doesn’t touch the database. What can change is behavior: well-maintained sites usually get faster, while very old plugins or custom code may show errors until they’re updated.

What is the best PHP version for WordPress?

As of December 2026, the best PHP version for WordPress is PHP 8.5 for up-to-date sites on WordPress 6.9 or newer, or PHP 8.4 if you rely on older plugins. Both are actively supported. WordPress.org recommends at least 8.3, and its hosting handbook recommends 8.4 or later for production.

Is it safe to update PHP in WordPress?

Yes, if you prepare: back up, update everything, test on staging and keep the old version available. The switch itself is reversible in about a minute on almost every host, which makes it lower risk than many routine plugin updates. Staying on an end-of-life version is the riskier choice.

Will updating PHP make my WordPress site faster?

Usually, yes. How much depends on the site. In Kinsta’s benchmarks a basic WordPress site gained about 6.6% moving from PHP 7.4 to 8.5, while a WooCommerce store gained roughly 60%. Uncached, dynamic pages such as carts, checkouts, dashboards and searches benefit most.

Can I update PHP without a developer?

Yes. On shared and managed hosting it’s a dropdown in your control panel, and this guide covers each step. A developer helps when a custom theme or plugin throws errors you can’t fix by updating, or when you manage your own VPS and aren’t comfortable on the command line.

How often should I update PHP?

Plan a branch upgrade (for example 8.3 → 8.5) roughly once a year, and never let a site run past its branch’s end-of-life date. Patch releases within a branch (8.5.12 → 8.5.13) should happen whenever they’re released. Most hosts handle those automatically.

What happens if I don’t update PHP?

Your site keeps working for a while, but new PHP vulnerabilities stay unpatched, plugins stop offering you updates once they require a newer PHP, and eventually WordPress itself stops updating. When WordPress 7.0 shipped in May 2026, sites on PHP 7.2 and 7.3 were left behind on the WordPress 6.9 branch. Some hosts also force-upgrade or charge extended-support fees for old versions.

Do I need to update WordPress before upgrading PHP?

Yes. Support for new PHP versions is added to new WordPress releases only. For example, PHP 8.5 needs WordPress 6.9 or later, and PHP 8.6 needs WordPress 7.2. Update core, then plugins and theme, then switch PHP.

How do I update the PHP version in WordPress without cPanel?

Use your host’s own dashboard (hPanel, Site Tools, the Bluehost or GoDaddy portal, Cloudways), add the host’s documented handler to .htaccess, change it on the command line if you have a VPS, or ask your host’s support team to switch it for you.

Can I run different PHP versions for different WordPress sites?

Often, yes. cPanel’s MultiPHP Manager sets PHP per domain and subdomain, SiteGround sets it per site, and a VPS can run several PHP-FPM versions side by side. Some plans apply one version to every site on the plan (Hostinger) or the whole server (older Cloudways servers), so check before you switch.

Why does Site Health still show the old PHP version after I changed it?

The change probably didn’t reach that domain. Common reasons are changing the version for a different domain or subdomain, an old handler line in .htaccess overriding the panel, or a clash between Select PHP Version and MultiPHP Manager. Load a php-check.php file to see what the web server really runs.

Which PHP version is best for WooCommerce?

PHP 8.5 showed the biggest throughput gain for WooCommerce in recent benchmarks, with PHP 8.4 as the cautious alternative. Before switching a store, confirm that your payment gateway, shipping and invoice plugins support the version, and run a full test checkout on staging.

15. Conclusion

Knowing how to update PHP in WordPress is one of the most useful maintenance skills a site owner can have. A PHP update for a WordPress site brings better security, more speed (especially for WooCommerce) and access to current plugin updates, and the change itself takes about a minute. This is the PHP upgrade WordPress site owners can repeat every year, and the safe process is always the same:

  1. Check your version in Site Health.
  2. Back up and update WordPress, plugins and your theme.
  3. Check compatibility and test on staging.
  4. Switch to PHP 8.4 or 8.5 in cPanel, your host’s dashboard or on your server.
  5. Verify, watch the logs, and roll back if anything critical breaks.

With PHP 8.2 reaching end of life on December 31, 2026, now is the time to do it. Bookmark this guide for next year’s upgrade, and if a plugin blocks your move to a supported PHP version, tell its developer. Clear reports like yours are often what gets a compatibility fix released.

Inspire us with your love!

Saiful Islam

By Saiful Islam

Saiful Islam, the founder of aThemeArt, is a successful freelancer, a father of two boys, and an enthusiast in coding, YouTube, and gaming. Connect with me on Twitter, Facebook, and Instagram to stay updated with my latest endeavors.

You can check also

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*