EasyApache 4 packages every PHP version as a separate set of RPMs, so a cPanel server can run PHP 8.2, 8.3, 8.4 and 8.5 side by side and assign a different version to each domain. In late 2026, PHP 8.4 is the mainstream version, ea-php85 is available for sites ready for it, PHP 8.1 is retiring, and PHP 8.2 reaches its security end of life on 31 December 2026. Knowing how to install, switch and remove versions cleanly is routine work, and this guide covers it from both WHM and the shell.
Short answer: Enable the versions and a matching extension set in WHM → EasyApache 4 → Customize, or install them with dnf install ea-php85 ea-php85-php-* , then set the default with whmapi1 php_set_system_default_version and move individual domains with whmapi1 php_set_vhost_versions . Keep the extension list identical across versions so switching a site never produces a blank page, and remove a version only after php_get_vhost_versions shows no domain using it.…