# urbestack-php-move

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

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

## Usage

```
urbestack-php-move --to 8.4|default (--domain NAME... | --version 8.2 [--q TEXT] [--owner NAME] | --follows-default | --all) [--job ID] [--dry-run]
```

## Description

Moves selected domains to a different PHP version or changes whether they follow the server default. With --to, specify a version such as 8.4 that is installed and available for customers to select. Use --to default to have the domains follow the server default as it changes. Selecting an explicit version pins the domain to it even if the domain already runs that version through the default.

Use --domain once per named domain or --all to select every domain. You can also use the filters from the PHP section of the administrator's panel. --version selects domains running that PHP version. --q matches part of a domain name or any of its alias names, or the owner's full username. --owner selects domains owned by that account. --follows-default selects domains that follow the server default.

UrbeStack moves domains one at a time, just as it does when you switch versions in a domain's settings. It configures the pool for the target version and reloads Apache and PHP-FPM. Most sites continue to run as before. If older PHP code fails after a move, check the domain's error log. Changes to an explicit version are blocked while a PHP installation is in progress or while the target version is only partially installed.

The result shows what happened to each domain. UrbeStack skips domains whose PHP setting already matches --to and continues with the remaining domains if a move fails. Use --job to record each domain's result and update progress for that job in the Jobs section. Use --dry-run to preview which domains would move without changing their PHP settings.

## Same in the API

- [POST /php/domains/move](https://urbestack.com/docs/api/post-php-domains-move.md): Queue a job to move domains to a PHP version or the server default

## 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-install](https://urbestack.com/docs/commands/urbestack-php-install.md): Sets up the PHP package source and installs the base packages and default extensions for the selected 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-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.
