I'm currently running my custom bootstrap config, and I had a previous problem where MSM wouldn't work with it (Both in the Control Panel and the front end)
I managed to fix this problem, but now I get an "Error 500" on the front end, whenever I enter one of the sites other than the main one.
What could be causing this.
I have possibly nailed it down to being:
<?php require('./config.php'); ?>
In my "system/expressionengine/config/config.php" requesting my custom config file in the root directory. Could this be causing problems?
My custom config file can be found here:
https://github.com/madebymayo/ExpressionEngine-Environment-Config
EDIT: I must point out, that before placing my custom config in, the original config file worked perfectly for EE and MSM. But it doesn't really work with my workflow :)
PARTIALLY SOLVED...Still need help
My current setup is to have my custom "config.php" bootstrap in the root of my site.
I then Have the require('./config.php') in both the database.php and config.php files within "/system/expressionengine/config/"
My URL's look like this:
Now I think the problem is the
<?php require('./config.php'); ?>
I changed it to (Added dot):
<?php require('../config.php'); ?>
and both my website_1 and website_2 work. But it breaks my Control Panel and the Root URL.
Is there an If statement I could put in my config file, to say IF we're inside either website_1 or website_2 display:
<?php require('../config.php'); ?>
But if we're inside the root or in the CP, use:
<?php require('./config.php'); ?>