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

exp:maintenance

Take the site offline for maintenance and back: on, off or status.

Download as PDF

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

On this page

exp:maintenance

Take the site offline for maintenance and back: on, off or status.

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

./console exp:maintenance --help
php bin/php/maintenance.php --help

Help text

Maintenance mode: take the site offline and back

  maintenance.php on|off|status [options]

Options

OptionValueHelp
--messagerequiredWhat the page says, instead of the default text
--untilrequiredWhen the site is expected back: 30m, 2h, or a date and time
--allow-iprequiredAddresses that still see the site, comma separated
--allow-adminKeep the administration (/admin) reachable

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 ...).

Arguments: [action].


Generated by ./console exp:help:examples from bin/php/maintenance.php, kernel/private/classes/commands/maintenance.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