-
In your main site's
index.php
file (and also youradmin.php
andsystem/index.php
files), add the following lines just below the custom config values section:define('FLC_DOCROOT', $_SERVER['DOCUMENT_ROOT']); define('FLC_PATH', $_SERVER['DOCUMENT_ROOT'].'/config');
-
In
config.master.php
, update the lines 94 and 235 as follows:$base_path = FLC_DOCROOT; require FLC_PATH . '/config.' . ENV . '.php';
-
In
system/expressionengine/config/config.php
andsystem/expressionengine/config/database.php
, change therequire
lines as follows:require FLC_PATH . '/config.master.php';
-
In each of your MSM sites'
index.php
files, add the lines from #1 above, but make sure to changeFLC_PATH
to your main site's config folder.
Use FocusLab Config with MSM
Hi, thanks for this! working fine for the main site. With point (4), can you give an example, do you mean the master config folder or the ee config folder. I've tried just hardcoding both like:
define('FLC_PATH', '/var/www/vhosts/mainsite.com/httpdocs/config'); But no child msm site loads.
Regards,
James.
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/www.heffron-it.com.au/system/ee/legacy/core/Benchmark.php on line 30
Has anyone else run into this, or does this solution no longer work?
EDIT [SOLVED]
$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
Thanks for this!