In your main site's
index.phpfile (and also your
system/index.phpfiles), add the following lines just below the custom config values section:
define('FLC_DOCROOT', $_SERVER['DOCUMENT_ROOT']); define('FLC_PATH', $_SERVER['DOCUMENT_ROOT'].'/config');
config.master.php, update the lines 94 and 235 as follows:
$base_path = FLC_DOCROOT; require FLC_PATH . '/config.' . ENV . '.php';
system/expressionengine/config/database.php, change the
requirelines as follows:
require FLC_PATH . '/config.master.php';
In each of your MSM sites'
index.phpfiles, add the lines from #1 above, but make sure to change
FLC_PATHto your main site's config folder.
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:
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?
$env_config['subclass_prefix'] = 'EE_'; is required