Response
Guides by environment
Each guide lists prerequisites, example commands and how to verify the result. Start with the environment you manage and, where one exists, with your panel’s official procedure.
cPanel / WHM / EasyApache 4 / MultiPHP
Upgrading the ea-php packages on cPanel (with or without CloudLinux), verifying via the rpm changelog, and restarting Apache, PHP-FPM and lsphp.
Server administrators running PleskPlesk
Updating Plesk's PHP handlers and the panel's internal PHP, checking the build date for EOL versions, and restarting PHP-FPM.
Server administrators running DirectAdminDirectAdmin
Checking and upgrading PHP on DirectAdmin via CustomBuild, with a caveat about versions that had not been officially confirmed at the time of our check.
RHEL, AlmaLinux and Rocky Linux administratorsAlmaLinux / Rocky Linux / RHEL
Identifying PHP packages and module streams on RHEL-based distributions, checking errata and changelogs for the CVEs, upgrading with dnf and restarting php-fpm/httpd.
Debian and Ubuntu administratorsDebian / Ubuntu
Checking PHP packages and changelogs on Debian and Ubuntu, fixed DSA/DLA/USN versions, upgrading with apt and restarting PHP-FPM and Apache.
Nginx administratorsNginx + PHP-FPM
Identifying the FPM pool that serves each site behind Nginx, restarting masters and pools, request limits in Nginx, and verification.
Apache administratorsApache + mod_php
The highest-risk configuration according to the PHP project. Detecting mod_php, upgrading, fully restarting Apache, php_value settings in .htaccess and request limits.
Servers running LiteSpeed Enterprise or OpenLiteSpeedLiteSpeed / OpenLiteSpeed / LSAPI
On LiteSpeed, lsphp processes in detached mode are not restarted with the web server. How to upgrade the source of lsphp and make sure no old code is still running.
DevOps, developersDocker and containers
Finding PHP in images and containers, upgrading the base image and rebuilding, recreating containers, Kubernetes and FrankenPHP.
Shared hosting customers, agenciesShared hosting
On shared hosting, PHP is upgraded by the provider. What you can check yourself, why switching version in the panel is not always a fix, and why .user.ini settings are not enough.
WordPress and online shop administratorsWordPress / WooCommerce
Why updating WordPress is not enough, how to see your site's PHP version, what security plugins do (and do not) do, and integrity checks with WP-CLI after the upgrade.
Developers, DevOpsLaravel and applications with persistent workers
Queue workers, Horizon, Octane, RoadRunner, Swoole, Symfony Messenger and Supervisor keep PHP loaded for hours. How to restart them correctly after the upgrade and what to watch for with secrets.
Not sure which environment you have? The immediate actions guide starts with finding every PHP runtime. If you do not manage the server yourself, see the guide for site owners.