# urbestack-domain-set

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-domain-set --name DOMAIN [options] [--dry-run] --docroot PATH             move the document root: an absolute path inside the owner's home
```

## Description

Changes settings for an existing domain and synchronizes the DNS zones UrbeStack manages. Select the domain with --name and supply at least one setting. Use --dry-run to preview the configuration diff.

Use --docroot to set the document root to an absolute path inside the domain owner's home directory. UrbeStack creates the directory if it is missing. Set --www-alias to on or off to control whether the site also answers to www.<domain>. Set --www-redirect to www or bare to redirect visitors to that form of the domain name, or to none to disable the redirect. Set --wildcard to on or off to control whether the site also answers to *.<domain>.

Set --directory-listing to on or off to control whether visitors see a file list when there is no index page. Set --error-pages to on to serve errors/{403,404,500}.html from the document root, or to off to disable those pages. Set --stats-enabled to on or off to control whether the domain is included in the nightly statistics.

Set --ssl to auto to have UrbeStack obtain a certificate automatically, or to none to disable automatic issuance. Set --challenge to http for HTTP-01 validation or dns for DNS-01 validation. With --challenge auto, UrbeStack uses HTTP-01 unless the wildcard is enabled, in which case it uses DNS-01. Once a certificate is installed, --force-https on redirects all visitors to HTTPS and --hsts on tells browsers to keep using HTTPS. Set either option to off to disable it.

Use --php-version to select a PHP version such as 8.4. The version must be fully installed and available for new selections. An administrator can hide a version from new selections. Version selection is unavailable while a PHP installation is running. Pass an empty value to clear the domain's PHP version selection.

Use --php-setting KEY=VALUE to override a setting for the domain's PHP-FPM pool. Repeat --php-setting to set multiple overrides. Pass KEY= with an empty value to remove that override and restore the server default.

The PHP-FPM process settings are pm.max_children, pm.process_idle_timeout in seconds, and pm.max_requests. The php.ini settings are memory_limit, upload_max_filesize, post_max_size, max_execution_time, max_input_vars, disable_functions, display_errors, and date.timezone. For disable_functions, use a comma-separated list of function names or none.

Only an administrator can set open_basedir_tmp. Set it to on to include the shared /tmp directory in the pool's open_basedir or to off to exclude it. It defaults to off for new domains.

## Same in the API

- [PATCH /domains/{name}](https://urbestack.com/docs/api/patch-domains-name.md): Update a domain's settings

## Command family: domain

- [urbestack-domain-add](https://urbestack.com/docs/commands/urbestack-domain-add.md): Adds a hosted domain to a customer account.
- [urbestack-domain-alias-add](https://urbestack.com/docs/commands/urbestack-domain-alias-add.md): Adds an alias to an existing domain so Apache serves both names from the same document root.
- [urbestack-domain-alias-del](https://urbestack.com/docs/commands/urbestack-domain-alias-del.md): Removes an alias and updates Apache, DNS and mail configuration.
- [urbestack-domain-del](https://urbestack.com/docs/commands/urbestack-domain-del.md): Deletes a domain and its subdomains, along with their Apache virtual hosts, PHP-FPM pools, mailboxes, certificates and statistics.
- [urbestack-domain-list](https://urbestack.com/docs/commands/urbestack-domain-list.md): Lists domains in name order or returns a single domain by name.
- [urbestack-domain-log](https://urbestack.com/docs/commands/urbestack-domain-log.md): Reads a domain's access, error or PHP error log.
- [urbestack-domain-modsec-set](https://urbestack.com/docs/commands/urbestack-domain-modsec-set.md): Sets the ModSecurity mode or the owner's choice for a domain.
- [urbestack-domain-modsec-show](https://urbestack.com/docs/commands/urbestack-domain-modsec-show.md): Shows the server's ModSecurity mode, the administrator's mode for the domain, the owner's choice and the mode in force.
- [urbestack-domain-redirect-add](https://urbestack.com/docs/commands/urbestack-domain-redirect-add.md): Adds an HTTP redirect from a path on a domain.
- [urbestack-domain-redirect-del](https://urbestack.com/docs/commands/urbestack-domain-redirect-del.md): Removes redirects for a source path on a domain.
