How to update PHP on cPanel, Plesk and managed WordPress hosts
By PatchMyPHP ·
To update your PHP version, switch the site to a supported branch (PHP 8.4 or 8.3) in your hosting panel, then restart PHP and test the pages that matter. On a supported branch, your host installs the exact patch release that fixes PHP2Shell, 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Below are the steps for cPanel, Plesk and managed WordPress hosts, plus the test-after checklist.
Updating PHP matters right now because of PHP2Shell (CVE-2026-109618 and CVE-2026-109619, rated 9.2 (CVSS v4.0, PHP's rating)), which lets an attacker run code on an unpatched server. But the same steps apply any time you move to a newer, supported PHP branch.
First, confirm the version you run now
Read-only: one standard page request, like a browser visit. We never send attack traffic.
Which version to update to
| Version | Latest release | Security fixes until |
|---|---|---|
| PHP 8.5 | 8.5.13 | Dec 31, 2029 |
| PHP 8.4 | 8.4.28 | Dec 31, 2028 |
| PHP 8.3 | 8.3.37 | Dec 31, 2027 |
| PHP 8.2 | 8.2.36 | Dec 31, 2026 |
| PHP 8.1 and older | No fix | Ended |
For most sites, choose PHP 8.4 or 8.3. PHP 8.2's security support ends Dec 31, 2026, so landing there now means moving again soon. PHP 8.5 is the newest branch; check that your plugins, themes and any extensions support it before switching. Full dates: latest PHP version and end-of-life dates.
Before you switch (any host)
- Back up the site's files and database, or confirm a fresh backup from your host exists.
- Update plugins and themes first. Outdated extensions are the usual reason a site breaks on newer PHP.
- Use a staging copy if your host offers one, and switch that first to catch problems safely.
cPanel
- Log in to cPanel and open MultiPHP Manager (some hosts label it Select PHP Version).
- Tick your domain, choose PHP 8.4 or 8.3 from the list, and click Apply.
- Load the site and run the test-after checklist below.
If you are already on a supported branch (8.2 to 8.5), MultiPHP Manager only selects the branch; your host installs the actual patch release. Ask support whether the fixed build for your branch (8.5.12, 8.4.27, 8.3.36 and 8.2.35) is installed, since that is the release that closes PHP2Shell.
Plesk
- Open Websites & Domains, then your domain, then PHP (or PHP Settings).
- Pick PHP 8.4 or 8.3 and the handler your site already uses, usually FPM, then save.
- Run the checklist below.
Plesk's PHP builds themselves are kept current by whoever administers the server, under Tools & Settings → Updates. If you don't administer the server, ask your provider to confirm the fixed PHP build is installed for the branch you selected.
Managed WordPress hosts
Hosts that manage PHP for you (WP Engine, Kinsta, SiteGround, Pressable and similar) usually install the patch releases themselves and give each site a PHP version setting in their own dashboard:
- Open the site in your host's dashboard and find the PHP version setting.
- If you are on 8.1 or older, switch to PHP 8.4 or 8.3. If you are already on a supported branch, confirm the host has rolled out the October 2026 patch release.
- Clear any host-level cache, then run the checklist.
Host-by-host detail: how to change the PHP version WordPress runs on. For your own server, VPS, Ubuntu/Debian or Docker, see the command-line steps in how to update your PHP version.
Test after the update
A PHP update can break code that relied on something a newer version changed or removed, so test before you consider the job done:
- Home page loads without errors
- Login works (wp-admin, or your app's sign-in)
- A contact or search form submits
- Checkout or payment flow completes, if you have one
- No new errors in the server or PHP error log
Confirm the version the web server actually serves, not only php -v on the command line, because the two can differ. Re-run the checker, or look in WordPress under Tools, Site Health, Info, Server. If something broke, switch back to the previous branch and update or replace the plugin, theme or code that failed, then try again on staging.
Want to know the day it matters? Continuous monitoring reads the real PHP version from inside your server every day and emails you the day a new fix applies to your site, plus the signs of a break-in. See pricing.
Questions
How do I update my PHP version?
Switch your site to a supported branch (PHP 8.4 or 8.3) in your hosting panel, or install the new packages on your own server, then restart PHP and test the site. On a supported branch the host installs the exact patch release for PHP2Shell (8.5.12, 8.4.27, 8.3.36 and 8.2.35).
Which PHP version should I update to?
PHP 8.4 or 8.3 for most sites. Their latest releases are 8.4.28 and 8.3.37, and they get security fixes until Dec 31, 2028 and Dec 31, 2027. PHP 8.5 is newest (8.5.13); confirm your plugins support it first. Avoid landing on 8.2, whose support ends Dec 31, 2026.
Does updating WordPress update PHP?
No. WordPress, plugins and themes run on PHP, but PHP is installed by your host or on your server. You change it in your hosting panel, not through WordPress updates.
Do I need to restart anything after updating?
Yes. PHP-FPM and Apache keep running the old PHP until they restart. Hosting panels restart for you when you switch versions; on your own server, restart PHP-FPM or Apache yourself.
Checked December 3, 2026. Sources:
