help_hosting_guru You can get this from the orchd database on the control panel server. All websites with their PHP version and server:
source: https://community.enhance.com/d/3896-enhance-12261-and-php-cve-2026-109618-or-cve-2026-109619/46
sudo -u postgres psql -X -P pager=off -d orchd -c "SELECT d.domain, COALESCE(w.php_version,'(none)') AS php, COALESCE(NULLIF(s.friendly_name,''),s.hostname) AS server FROM websites w JOIN servers s ON s.id=w.server_id JOIN domain_mappings dm ON dm.website_id=w.id AND dm.kind='primary' JOIN domains d ON d.id=dm.domain_id WHERE w.kind=0 AND w.soft_deleted_at IS NULL ORDER BY php, d.domain;"
(read-only query)
To list only EOL versions (8.1 and below), add AND w.php_version < 'php82' after w.soft_deleted_at IS NULL.
kind=0 are regular customer websites; other values are system sites (control panel, phpMyAdmin, webmail, etc.).
For the bulk change, it’s already in the UI: Websites -> select the sites -> “Update PHP version” in the bulk management bar.