In this article
PHP is the language WordPress, Joomla, MODX, OpenCart and most websites run on. Each PHP version has a support period. While it lasts, the developers close vulnerabilities as they are found. After that, the holes stay open forever, and a site on that version becomes an easy target.
What it is
Each PHP version gets regular fixes for two years and security fixes only for two more. Then support ends. The dates are published on php.net:
| Version | Security updates until |
|---|---|
| PHP 7.4 | 28 Nov 2022 — support has ended |
| PHP 8.0 | 26 Nov 2023 — support has ended |
| PHP 8.1 | 31 Dec 2025 — support has ended |
| PHP 8.2 | 31 Dec 2026 |
| PHP 8.3 | 31 Dec 2027 |
| PHP 8.4 | 31 Dec 2028 |
How the monitor checks
Impact on the site and business
- Hacking risk. Vulnerabilities in old versions are well known and included in ready-made attack kits.
- Speed. PHP 8.x is noticeably faster than 7.x — the site responds faster without any other changes.
- Plugins stop updating. New versions of the CMS, plugins and extensions require recent PHP; on an old one you are stuck with old, vulnerable versions.
- Hosts switch off old versions. Usually with short notice — and the site breaks at an inconvenient moment.
Why it matters
Sites usually stay on old PHP not out of laziness but out of fear: “if we upgrade, something will break”. That is a real risk, especially for sites with outdated plugins or custom code. But postponing the upgrade means the problem piles up: in a year or two the move will be harder, and the host may force it on you.
Norms
| Rating | Version | Comment |
|---|---|---|
| Good | PHP 8.3, 8.4 and newer | Supported and fast |
| Could be better | PHP 8.2 | Support ends at the end of 2026 — plan the move |
| Bad | PHP 8.1 and older | No security updates |
How to fix it
- Make a full backup of the site and the database.
- Update the CMS, theme and all plugins/extensions to the latest versions — on the old PHP, while the site still works.
- Check compatibility: in WordPress — a PHP compatibility checker plugin or the error log; in Joomla — “System → System Information”.
- Ideally switch PHP on a copy of the site first (a test subdomain) and go through the home page, cart, forms and account area.
- Switch PHP on the live site and immediately check key pages and the error log.
Hosting and control panel
In most panels (cPanel — “Select PHP Version” or “MultiPHP Manager”, ISPmanager, FastPanel, Plesk) the PHP version is chosen for the site from a list. If something breaks, you can switch back just as quickly.
WordPress
Under “Tools → Site Health” WordPress shows the current PHP version and warns if it is outdated. If you get a white screen after switching, enable WP_DEBUG in wp-config.php or check the error log: it will name the incompatible plugin.
Joomla
Joomla 3 doesn’t fully work on PHP 8.1+ and is itself out of support. For it, a PHP upgrade usually means moving to Joomla 4/5 — that is a separate job.
MODX
MODX Revolution 2.8 runs on PHP 8.x with caveats, MODX 3 fully. Update the extras (pdoTools, MiniShop and others) before switching.
Server (VPS)
On your own server you can install a new PHP-FPM version alongside the old one and switch the site to it in the nginx config without touching other sites:
sudo apt install php8.3-fpm php8.3-mysql php8.3-mbstring php8.3-xml php8.3-curl php8.3-gd php8.3-zip php8.3-intl
# in the site's nginx config:
# fastcgi_pass unix:/run/php/php8.3-fpm.sock;
sudo nginx -t && sudo systemctl reload nginxGeneral recommendations
- Upgrade PHP every year or two, without waiting for support to end.
- Hide the PHP version in headers (
expose_php = Off) — fewer hints for attackers. - Get rid of plugins that haven’t been updated for a long time: they are the main obstacle when upgrading.
FAQ
My host says they run PHP 7.4 with “extended support”. Is that OK?
Some hosts patch old versions themselves — better than nothing, but plugins and the CMS still require new PHP. It is a postponement, not a solution.
After the PHP upgrade the site shows errors. What do I do?
Switch back to the previous version in the panel — the site will work again. Then use the error log to find the incompatible plugin or code and update or replace it.
The monitor doesn’t show the PHP version. Why?
The server hides it — which is right from a security point of view. You can see the version in the hosting panel.