# urbestack-php-install

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

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-php-install [--version 8.4]... [--all] [--job ID]
```

## Description

Sets up the PHP package source and installs the base packages and default extensions for the selected PHP versions. Repeat --version to select multiple versions. Each version named with --version is added to the server's configured PHP set so it is included when a server is rebuilt from this configuration.

Without --version, the command installs configured versions that are missing or have an incomplete package set. On Ubuntu, this includes the PHP version UrbeStack itself uses, which is installed without extensions during initial setup. Use --all without --version to run the installation for the entire configured set, including versions that already have all their packages. If the command finds that a default extension has no package in the repositories, it skips that extension and reports a warning.

Successfully installed versions are offered to customers, including versions that have reached end of life or were previously hidden. You can hide a version in the PHP section of the administrator's panel.

UrbeStack runs only one PHP installation or extension change at a time. Use --job ID to record progress in an existing job. The job worker supplies this option so progress appears in the Jobs and PHP sections of the administrator's panel.

## Same in the API

- [PUT /php/versions](https://urbestack.com/docs/api/put-php-versions.md): Set the configured PHP versions, hidden versions, or default version
- [POST /php/versions/{version}/install](https://urbestack.com/docs/api/post-php-versions-version-install.md): Queue installation of a PHP version

## Command family: php

- [urbestack-php-ext-list](https://urbestack.com/docs/commands/urbestack-php-ext-list.md): Lists the PHP extension catalog for this server's distribution and shows each extension's state for every installed PHP version.
- [urbestack-php-ext-set](https://urbestack.com/docs/commands/urbestack-php-ext-set.md): Turns one extension in the PHP extension catalog on or off for one or more installed PHP versions.
- [urbestack-php-list](https://urbestack.com/docs/commands/urbestack-php-list.md): Lists every PHP version known to UrbeStack with its upstream support status and the date its security fixes end.
- [urbestack-php-move](https://urbestack.com/docs/commands/urbestack-php-move.md): Moves selected domains to a different PHP version or changes whether they follow the server default.
- [urbestack-php-notify](https://urbestack.com/docs/commands/urbestack-php-notify.md): Emails owners of selected domains running PHP versions whose security support has ended or ends in fewer than 120 days.
- [urbestack-php-pool-list](https://urbestack.com/docs/commands/urbestack-php-pool-list.md): Lists domain pools that reached their PHP-FPM child process limit (pm.max_children) in the last 14 days, ordered by warning count with the highest first.
