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

Configuration managed by deployment

How the ManagedByDeployment switch locks the settings, template and package screens of a live siteaccess so that every configuration change passes version control and your change board, what stays open, and how to…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/upgrades-and-change/managed-by-deployment.md

On this page

Configuration managed by deployment

This page is for administrators and change managers who want every configuration change on a public website to go through version control and a change board, not through a browser on the live server. Exponential has one switch for this, [ConfigurationSettings] ManagedByDeployment, described on Configuration managed by the deployment.

Contents

  1. Why public bodies want it
  2. What the switch locks
  3. What stays open
  4. Switching it on
  5. Working with it
  6. Limits
  7. Related pages

Why public bodies want it

Without the switch, the INI editor, the toolbar and menu editors and the template editor write *.ini.append.php and .tpl files into the release directory, where version control does not see them and the next deployment drops them. A change made that way has no ticket, no review and no history beyond the audit trail. With the switch on, the live site can only run what was deployed, which is what a change advisory board approves.

What the switch locks

In a web request, with ManagedByDeployment=enabled for the siteaccess:

  • Views answer like a view switched off (by default a 404), whatever the roles say: settings/edit, the settings toolbar, the toolbar and menu editors, the template editor, the setup wizard, extension activation (setup/extensions), the code generators (setup/rad and its wizards) and package upload, install, uninstall, create and export. The list is in the class expManagedConfiguration, so a settings file cannot weaken it.
  • Menus and links to those views are hidden.
  • Writers refuse: eZINI::save() returns false and expIniEditor::save() throws a refusal, which also stops writers the list does not name (extension modules, the debug bar settings, audit and mail sender settings pages).
  • The setup wizard does not start.
  • Packages: compare still works, import and removal are not offered.

PHP-FPM, Apache, FrankenPHP, the built-in server and Velocity's workers all refuse the same way.

What stays open

  • Read-only views: settings/view (Setup > Ini settings), the template and package lists, Setup > Cache management, Setup > System information, the logs.
  • Command-line scripts and the deployment itself, including ./console exp:ini and bin/php/*.php.
  • Key material the code generates on first use (audit keys, the mail preference secret): runtime state, still written.

Switching it on

The switch is per siteaccess and is never written from the administration:

# settings/siteaccess/<admin siteaccess>/site.ini.append.php
[ConfigurationSettings]
ManagedByDeployment=enabled

Put it in version control with the rest of the settings, deploy, and clear the INI cache (php bin/php/ezcache.php --clear-tag=ini --allow-root-user). Check: Setup > Ini settings shows the settings but offers no edit; /settings/edit answers like a disabled view.

Working with it

ChangePath
A settingedit the file in the repository, review, approve, deploy; ./console exp:ini on a test copy to try values
A templatethe same; the template editor stays available on development and test siteaccesses where the switch is off
An extensioncomposer.json and settings in the repository; activation by deployment
Content, roles, workflowsunchanged: they are data, edited in the administration and recorded in the audit trail

The setting can differ per environment with EXP_ENV variant files, so test and development stay editable (Environments: development, test and production).

Limits

  • Installing a package from the command line still writes to the database, and packages can carry content.
  • File permissions on the release directory remain the stronger measure; the switch is an application-level guard.
  • Roles, workflows, sections and states are configuration in the database: they are not locked. Govern them with roles (who may change them) and the audit trail.

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