Guide · Server administrators running cPanel
cPanel / WHM / EasyApache 4 / MultiPHP
Contents
Prerequisites#
- Root access (SSH) or WHM with administrator privileges.
- Know whether the server runs CloudLinux. The fixed package numbers differ: on CloudLinux EasyApache 4 the fixed
ea-php84is 8.4.26-2, while on cPanel without CloudLinux it is 8.4.27. - A recent backup.
1. Which PHP versions are installed and which one each domain uses#
Read-only: changes nothing
# Installed ea-php versions and full package names
rpm -qa 'ea-php*-php-cli' | sort
# PHP version per virtual host (JSON/YAML from the WHM API)
whmapi1 php_get_vhost_versions | grep -E 'vhost|version|php_fpm'
# System default version
whmapi1 php_get_system_default_version
# On CloudLinux: alt-php versions (PHP Selector)
rpm -qa 'alt-php*-cli' | sort
In WHM: MultiPHP Manager (version per domain) and MultiPHP Manager → PHP Handlers (handler per version).
2. Check whether the packages already include the fix#
Read-only: changes nothing
# For each installed version: a line is shown if the fix appears in the changelog
for p in $(rpm -qa --qf '%{NAME}\n' 'ea-php*-php-cli' 'alt-php*-cli' | sort -u); do
printf '%-24s %s\n' "$p" "$(rpm -q --changelog "$p" | grep -m1 -oE 'CVE-2026-10961[89]' || echo 'NO CVE reference')"
done
If a package shows NO CVE reference, it has not been updated, or the vendor has not recorded the fix in the changelog. Compare the version and release against the vendor’s table.
3. Update the packages#
Changes packages or configuration: back up and test first
The cPanel procedure:
# AlmaLinux / CloudLinux / RHEL-based
yum clean all && yum makecache
/scripts/update-packages
Alternatively, CloudLinux gives the following for ea-php and alt-php:
# CloudLinux 8, 9, 10
dnf clean all
dnf upgrade 'ea-php*'
dnf upgrade 'alt-php*'
On cPanel for Ubuntu: apt clean && apt update, then /scripts/update-packages.
4. Restart#
Restart: possible brief service interruption
/scripts/restartsrv_httpd
/scripts/restartsrv_apache_php_fpm
If the server uses LiteSpeed Enterprise, lsphp processes in detached mode are not restarted along with the web server. See the LiteSpeed guide. The same applies to users’ lsphp processes on CloudLinux with mod_lsapi.
5. Verify#
Read-only: changes nothing
# The changelog should now mention the CVEs
rpm -q --changelog ea-php84-php-cli | grep -m1 CVE-2026-109618
# No PHP process should be running a deleted (old) binary
for p in $(pgrep -f 'php-fpm|lsphp|httpd'); do ls -l /proc/$p/exe 2>/dev/null; done | grep deleted
To confirm via the web for each domain, see step 5 of the immediate actions. Running php -v in a user’s SSH session only shows that user’s CLI.
Notes#
- A user’s CageFS environment does not let the user read the RPM database. Package checks are done as root.
- cPanel also lists fixed versions of cPanel & WHM itself (11.110.0.153, 11.134.0.66, 11.136.0.50, 11.138.0.18; WP Squared 11.138.1.17). Upgrade the panel too, not just the ea-php packages.
Main source: cPanel · CloudLinux