I installed DA on a multisite (development/sandbox) environment. After adding to the domain list, visiting the new domain resulted in the install page. However, installing DA without any multisites works as expected.

Is this as intended?

Comments

agentrickard’s picture

Status: Active » Closed (works as designed)

Yes.

DA is compatible with multisite Drupal, but only if you set up your sites directories properly. That is because DA expects you to have a single settings.php file for any domain under its control.

It may be possible to get DA running with a multi-site install, but there would need to be multiple DNS records pointing to a single instance of the installation.

For instance, in a normal multisite, you would have the following sites directories:

- default
- example.com
- one.example.com
- two.example.com
- thisexample.com
- thatexample.com

For a total of 6 settings.php files.

For sites to 'register' with DA, they must share a common settings file, so you would need your DNS records to point all requests as follows:

- default
-- example.com (DA site)
-- one.example.com (DA site)
-- two.example.com (DA site)
- thisexample.com (stand-alone site)
- thatexample.com (stand-alone site)

For a total of 3 settings.php files.

In this case, any sites you wanted to be controlled by DA would _not_ have their own sites directory and would simply fall-through to the 'default' site folder.

theneemies’s picture

Sounds like the DA source/subsites will have to use sites/default. What I was trying was:

sites/
	- default/default.settings.php (so, nothing here)
	- dasource.local/settings.php (just the one settings.php file, but in a multisite folder)
	- dasource.local/modules/domain

When I created a new Drupal instance, without multisite, the result was:

sites/
	- default/settings.php
	- all/modules/domain

Which corresponds with your advice of having one settings.php file, in the default folder. I'll try adding a standalone multisite to this Drupal instance, just to see if works.

sorensong’s picture

So just to make sure I'm getting this right, DA sites will only work on /sites/default?