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

Lock configuration with ManagedByDeployment

Step by step - switch on ManagedByDeployment for the production administration siteaccess so settings, templates, extensions and packages can only change through version control, and check what is locked and what stays…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/tasks/operations/lock-configuration-with-managed-by-deployment.md

On this page

Lock configuration with ManagedByDeployment

This task is for administrators who want every configuration change on production to pass version control and the change board. Background: Configuration managed by deployment.

Contents

  1. Before you start
  2. Steps
  3. Check it worked
  4. Pitfalls
  5. Related pages

Before you start

  • Settings and templates of the site are in version control, and changes reach production by deployment.
  • Nobody relies on the browser's settings or template editor on production (move that work to test).
  • A change approved for the lock itself.

Steps

  1. In version control, add to the production administration siteaccess's settings (never written from the admin):

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

    To lock only production while test stays editable, put it in the production variant file (site.ini.prod.append.php, with EXP_ENV=prod) (Set up environment-specific settings). Lock every siteaccess an administrator can use.

  2. Deploy, then php bin/php/ezcache.php --clear-tag=ini --allow-root-user and reload (./console exp:velocity deploy --allow-root-user).

Check it worked

  • Setup > Ini settings shows settings but offers no edit; /settings/edit answers like a disabled view (404 by default).
  • Setup > Extensions offers no activation; package upload and install are gone; the template editor is not offered.
  • Setup > Cache management, System information and Log files still work.
  • On the shell, ./console exp:ini and bin/php/*.php still work (the deployment's tools).

Pitfalls

  • Roles, workflows, sections and states are data in the database: not locked; govern them with roles and the audit trail.
  • Installing a package from the command line still writes to the database.
  • File permissions on the release directory remain the stronger guard (Check file and directory permissions).

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