EasyApache
EasyApache Settings
Count domains using EOL PHP versions
This function counts the number of domains across all cPanel users that are using end-of-life (EOL) PHP versions. It determines EOL status by comparing each domain's PHP version against the oldest_supported_version value from the /etc/cpanel/ea4/ea4-metainfo.json file.
get/eol_php_sites
Response
HTTP Request was successful.
Example response
{
"data": {
"eol_php_sites": 42
},
"metadata": {
"command": "eol_php_sites",
"reason": "OK",
"result": 1,
"version": 1
}
}