Get your free beta license ↗
CMDCommand · run as root on the server · php family

urbestack-php-ext-set

First published 14 Oct 20260.2.0Unchanged since publication

Usage

# urbestack-php-ext-set --name redis (--on | --off) (--version 8.4 ... | --all-versions) [--job ID] [--dry-run]

Description

From the command's --help output
Turns one extension in the PHP extension catalog on or off for one or more installed PHP
versions. Repeat --version to select multiple versions. Use --all-versions to select every
installed version where the extension can be changed to the requested state. If no version
qualifies, the command reports that there is nothing to change.

The command installs or removes the extension package for one version at a time. It reloads that
version's PHP-FPM service for all sites using it, lets in-flight requests finish and checks the
extension's modules with php -m.

When turning an extension on, the command reports what else the package manager pulls in. It
refuses a removal that would also remove a base package or another enabled extension and
includes the package manager's proposed changes in the refusal. For example, it refuses to
remove pdo while mysqlnd depends on it.

The first failed or refused package change stops the run. The report names the remaining
versions as skipped. UrbeStack runs only one PHP installation or extension change at a time.
With --dry-run, the command only previews the package changes.

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.

Options

Find other commands that accept these options

Same in the API

These operations run the command.

More in php

7 commands, by what they work onView all commands in this family →
urbestack-php-
urbestack-php-ext-
urbestack-php-pool-
Generated from release 0.2.35 (current) · urbestack-php-ext-set --help outputThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/commands/urbestack-php-ext-set/