Export the configuration changes

Run the following command to export the configuration changes:

bin/magento app:config:dump

The results are written to the <Magento_install_dir>/app/etc/config.php file.

Next, clear the cache to enable the new setting:

bin/magento cache:clean config

See Export the configuration.

Disable module output in a simple deployment

The procedure for disabling module output on a single instance of Commerce is easier because the changes do not have to be distributed.

  1. Archive the original <Magento_install_dir>/app/etc/config.php file.

  2. Add the advanced and modules_disable_output sections to the config.php file (if they do not exist):

    'system' =>
      array (
        'websites' =>
        array (
          'base' =>
          array (
            'advanced' =>
            array (
              'modules_disable_output' =>
              array (
                'Magento_Review' => '1',
              ),
            ),
          ),
        ),
      ),
    

In this example, output for the Magento_Review module has been disabled and customers can no longer review products.
To re-enable output, set the value to 0.

Previous pageModule files
Next pageconfig.php

Commerce