Skip to content

Instantly share code, notes, and snippets.

Last active May 30, 2016 23:53
What would you like to do?
Use FocusLab Config with MSM
  1. In your main site's index.php file (and also your admin.php and system/index.php files), add the following lines just below the custom config values section:

    define('FLC_PATH', $_SERVER['DOCUMENT_ROOT'].'/config');
  2. In config.master.php, update the lines 94 and 235 as follows:

    $base_path = FLC_DOCROOT;
    require FLC_PATH . '/config.' . ENV . '.php';
  3. In system/expressionengine/config/config.php and system/expressionengine/config/database.php, change the require lines as follows:

    require FLC_PATH . '/config.master.php';
  4. In each of your MSM sites' index.php files, add the lines from #1 above, but make sure to change FLC_PATH to your main site's config folder.

Copy link

nachopants commented May 30, 2016

Hi guys,

I've set this up (v3.3.2) but seem to be getting a bizarre issue.

Fatal error: Cannot redeclare class EE_Benchmark in /var/www/html/ on line 30

Has anyone else run into this, or does this solution no longer work?


$env_config['subclass_prefix'] = 'EE_'; is required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment