PHP versions by site
whm_php_versionsLists each virtual host's PHP version and filters sites by exact version or those older than a target. Check unresolved_count separately, as filtered results exclude unresolved sites.
Instructions
List the PHP version of every virtual host. Use exact_version or older_than to find sites on an outdated version. unresolved_count is the number of sites whose version couldn't be worked out. Those sites are left out when you filter, so check them separately before calling a server clean.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whm_php_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Only return this account's sites. | |
| limit | No | Maximum items to return. | |
| offset | No | Items to skip. Use next_offset from the previous response. | |
| older_than | No | Only return sites below this PHP version, such as 8.1. | |
| exact_version | No | Only return sites on this PHP version, such as 7.4. |