We want to have three sites based on Drupal in the same server and under the same domain: interactors.coop, docs.interactors.coop and kernel.interactors.coop.
Things we want to share across sites (this has been solved):
- users and their profiles
- sessions (if you're logged in in one drupal you're logged in in the others).
Things we don't want to share (we are trying to solve this):
- configuration of modules (i.e. some modules are activated in one site but not in others, or same module is configured in different ways in two sites)
- permissions (i.e. logged-in users may post articles in one site but they don't in another site)
- user settings (i.e. I may want to receive notifications from one site, not from another)
Is is possible not to share these things when you are sharing an installation with same tables for users, profiles (and modules)?
Comments
Split Databases
You can do this a couple ways. The best way that worked with me is use multiple databases and set the database prefix. Make sure you set the "main" site's prefix otherwise the sequence table gets out of sync.
site1.php:
$db_prefix = "site1.";
site2.php:
$db_prefix = array(
"default" => "site2.",
"users" => "site1.",
"role" => "site1.",
"sequences" => "site1.",
);
In your case, use the following configuration files in the includes: interactors.coop.php, docs.interactors.coop.php and kernel.interactors.coop.php
Each site file will have either its own database or its own prefix. And its own base url and everything else of course.
Does that explain at least part of it?