Recent Posts


Magento 2: Don’t Manually Edit `app/etc/config.php`


Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

The app/etc/config.php file contains a list of all the modules in Magento that have been enabled/disabled. It’s also the master list for module ordering – i.e. Magento references this file when deciding what order to load configuration files in.

The order of modules in app/etc/config.php is, itself, determined by the <sequence/> tags in the module.xml files. Magento will rejigger the order of things in app/etc/config whenever you enable a module. This means manual edits to this file will not obey the sequence tags. Since Magento’s configuration loading takes it sort order from app/etc/config.php – a manual change could break your system in subtle ways.

Copyright © Alan Storm 1975 – 2022 All Rights Reserved

Originally Posted: 19th February 2016