# GET /php/versions

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the php group.

List known PHP versions and their installation status

- Who may call it: administrator, reseller, customer
- Token scope, any of: settings, read, all
- Answers: 200 OK

For 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

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/php/versions" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 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

- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<key>' not found
