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

Maintenance mode during changes

Take a site offline for upgrades, imports and restores - Setup > Maintenance or maintenance.php, the message and expected end, who still gets in, what visitors and search engines get, and the way back in.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/maintenance-mode.md

On this page

Maintenance mode during changes

This page is for website creators who must take a site offline for a while: an upgrade, an import, a restore. Maintenance mode answers every public page with a friendly 503 page while you work, and keeps the administration reachable (Maintenance mode).

Contents

  1. What visitors get
  2. From the administration
  3. From a shell
  4. The way back in
  5. Good practice

What visitors get

Every page request gets the maintenance page with status 503 Service Unavailable, Retry-After and no-store, so search engines come back later and nothing is cached. Images, styles and scripts are still served. Your message and the expected end are shown.

From the administration

Setup > Maintenance (/setup/maintenance): an optional message, an optional expected duration (15 minutes to 4 hours in one click), who still gets in (your own address with one tick, other addresses), a preview, and a confirmation before Take the site offline. While offline, the page shows an amber banner and Bring the site back online. Maintenance never ends by itself.

Setup, Maintenance: the site is online, with the plan for a maintenance window and a preview of the page visitors will see
Setup, Maintenance: the site is online, with the plan for a maintenance window and a preview of the page visitors will see

From a shell

php bin/php/maintenance.php on --message="Back soon" --until=2h --allow-admin --allow-root-user
php bin/php/maintenance.php status --allow-root-user
php bin/php/maintenance.php off --allow-root-user

Without --allow-admin the administration is offline too. The same is ./console exp:maintenance.

The way back in

The whole state is one file, var/maintenance.json. Deleting it ends maintenance, whatever else is wrong. Every switch is recorded in the audit trail.

Good practice

  • Announce planned maintenance in advance and keep the window short.
  • Let your own address through to test before switching back.
  • Under Velocity, clear the response cache after switching back.
  • For a backup alone, maintenance mode is only needed to keep database and files consistent.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

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