Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

exp:expclusterenable

Make the installation a one-node DFS cluster: the share, the cluster tables, the settings, the files moved in; a dry run unless --apply.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expclusterenable.md

On this page

exp:expclusterenable

Make the installation a one-node DFS cluster: the share, the cluster tables, the settings, the files moved in; a dry run unless --apply.

Script bin/php/expclusterenable.php, code in kernel/private/classes/commands/expclusterenable.php. Run it from the installation root, as the user the web server runs as:

./console exp:expclusterenable --help
./console exp:cluster:enable --help
php bin/php/expclusterenable.php --help

Help text

Make the installation a one-node DFS cluster
Makes the share folder (default: dfs next to the installation, --share another one outside it), the
kernel's cluster tables in the site's own database (kernel/sql/<engine>/cluster_dfs_schema.sql; the
collections of cluster_dfs_schema.json on MongoDB), the
cluster settings as a marked block of settings/override/file.ini.append.php and config.cluster.php
for the cluster gateway, clears the INI caches, and moves the stored files in with clusterize.php
(once per var directory; --no-move leaves that for later). MySQL/MariaDB, PostgreSQL, MongoDB, Oracle, SQL Server,
or SQLite for
one node only. The rewrite rule of the gateway is printed for the web server: add it
in front of the site's own rules. Files that change are backed up to var/backup/cluster/. Without
--apply nothing is written.

./console exp:cluster:enable                                  what would be done
./console exp:cluster:enable --apply
./console exp:cluster:enable --share=/mnt/e1/dfs/example.com --apply

Exit code: 0 done, shown, or on already; 1 a step failed (what was written is put back); 2 wrong
options or the installation cannot be a cluster (its database, its own cluster settings).

Options

OptionValueHelp
--sharerequiredthe share folder, an absolute path outside the installation (default: dfs next to it)
--backendrequiredauto (the default: the site's database), mysqli, postgresql, sqlite, mongodb, oracle or sqlserver
--no-movedo not move the stored files in now (run bin/php/clusterize.php yourself)
--applywrite; without it nothing is changed

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/expclusterenable.php, kernel/private/classes/commands/expclusterenable.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x