API operation · php group
POST
/php/versions/{version}/install
First published 14 Oct 2026
0.2.0Unchanged since publicationQueue installation of a PHP version
Who may call it
AdministratorResellerCustomer
Token scope, any of
settingsallAnswers202 Accepted
UrbeStack adds the version to php.versions.installed so it is included when a server is rebuilt from this configuration. It then queues a php-install job for that version alone. Versions whose upstream security support has ended can still be installed and become selectable once installed if they are visible.
Returns 202 with the job for tracking and the current version report. Returns 400 for an unknown PHP version.
As commands
Run as root on the serverParameters
versionpath ·string, matching ^[5-9]\.[0-9]$RequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/php/versions/0.0.1/install" \ -H "Authorization: Bearer $TOKEN"
Response ·
202 Accepted{
"job": {
"created_at": "2026-09-09T10:15:00Z",
"created_by": 1,
"created_by_name": "text",
"dismissed_at": "text",
"finished_at": "2026-09-09T10:15:04Z",
"id": 1,
"lane": "short",
"log": "",
"params": {},
"progress": 100,
"result": {},
"started_at": "2026-09-09T10:15:01Z",
"status": "queued",
"type": "rebuild",
"usual_seconds": 1
},
"versions": {
"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
36 errors, each a status and a sentence400'<zone>' is not a zone this machine knows: timedatectl list-timezones names them400--value or --value-stdin is required400<key> is made by the panel for its own use and is not set from outside400A new job is queued or running400Domain name required400Domain name too long400Give --value or --value-stdin, not both400Invalid <what>: 400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400PHP <version> cannot be the default: it is hidden from new choices on this server400PHP <version> cannot be the default: it is not installed on this server400Unknown PHP version '400Unknown PHP version '<v>'400Unknown job type400Unknown setting '<key>'400Username '<value>' is reserved400jobs.keep_days (<keep>) may not be smaller than jobs.show_days (<show>): a job cannot be shown longer than it is kept; 0 keeps them for good401Authentication required404Setting '<key>' not found404User '<user>' not found409<key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another409<key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another409<s.subject> cannot take port <port>: 409<s.subject> cannot take port <port>: <why>409<s.subject> cannot take port <port>: it is the panel's port (panel.port)409A change is already armed for revert (409Sharing is required with this license.409The panel cannot take port <port>: 409The panel cannot take port <port>: <why>409These are the nameservers of a distribution network with several nodes, and every node lists the same ones. To remove a nameserver or move it to another node, use the actions beside its name on DNS zones › Nameservers & addresses, or urbestack-dns-nameserverNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/post-php-versions-version-install/