/php/versions
0.1.0Unchanged since publicationList known PHP versions and their installation status
settingsreadallFor each PHP version UrbeStack knows, the report shows its upstream support status (active, security, or eol), the next support status change when applicable, and the date security fixes end. It also shows whether the version is installed, whether PHP-FPM is running, and whether the version can be selected for a domain. A version is selectable if it is installed and visible.
The report includes the server distribution, the default PHP version, the hidden versions, the extension list, and the configured installation set in installed_set. If php.versions.installed is unset, installed_set includes every version still supported upstream. The missing field lists versions in that set that are yet to be installed.
The report includes per-version domain and owner counts, the total domain count, and the number of domains that follow the default. Domain counts include suspended domains. It also shows the default PHP limits and how many domains override them, along with each version's configured executable paths, pool directory, PHP-FPM service name, and package details when available.
Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/php/versions" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"default": "text",
"distro": "text",
"domains_total": 1,
"extensions": [
"text"
],
"following_default": 1,
"hidden": [
"text"
],
"installed_set": [
"text"
],
"limits": {
"builtin": {},
"defaults": {},
"keys": [
"text"
],
"own_counts": {}
},
"missing": [
{
"binary": "text",
"cli": "text",
"days_left": 1,
"domains": 1,
"hidden": true,
"installable": true,
"installed": true,
"is_default": true,
"legacy": true,
"near_end": true,
"owners": 1,
"package": "basic",
"package_version": "text",
"pool_dir": "text",
"running": true,
"security_until": "text",
"selectable": true,
"service": "text",
"state": "up",
"status": "active",
"status_changes_on": "text",
"version": "0.0.1",
"wanted": true
}
],
"versions": [
{
"binary": "text",
"cli": "text",
"days_left": 1,
"domains": 1,
"hidden": true,
"installable": true,
"installed": true,
"is_default": true,
"legacy": true,
"near_end": true,
"owners": 1,
"package": "basic",
"package_version": "text",
"pool_dir": "text",
"running": true,
"security_until": "text",
"selectable": true,
"service": "text",
"state": "up",
"status": "active",
"status_changes_on": "text",
"version": "0.0.1",
"wanted": true
}
]
}Errors
3 errors, each a status and a sentence400Invalid setting key401Authentication required404Setting '<key>' not foundurbestack.com/docs/api/get-php-versions/