Lock settings with ManagedByDeployment
For administrators and developers of public bodies with change management. With the switch on, the administration can no
longer write *.ini.append.php or .tpl files, activate extensions, run the setup wizard or code generators, or
install packages (Configuration managed by the deployment).
Contents
Before you start
- Every setting and template the administration changed on the server is in version control. Compare the server's
settings/siteaccess/and design folders with the repository first. - Secrets stay in
settings/override/, outside version control. - The command line keeps working (
exp:ini,bin/php/*.php); administrators need a change process for settings.
Steps
In the administration siteaccess's versioned
site.ini.append.php(or an extension's versioned settings):[ConfigurationSettings] ManagedByDeployment=enabledDeploy as usual; clear the INI cache and reload PHP (or
./console exp:velocity deploy --allow-root-user).
Check that it worked
- Setup > Ini settings shows values, with no edit links.
/setup/rad,/setup/extensionsand the template editor answer like a switched-off view (404 by default).- Packages: the list offers no upload or install.
- A setting write from the debug bar is refused.
Keys the code generates on first use (audit keys, mail preference secret) are still written.
Related pages
- Configuration managed by the deployment
- Deploying
- File permissions and ownership
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.