Closed (outdated)
Project:
Domain
Version:
7.x-3.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2012 at 02:01 UTC
Updated:
2 May 2025 at 12:59 UTC
Jump to comment: Most recent
Comments
Comment #1
agentrickardYes. But you need to configure
sites.phpin order to direct the Domain Access-controlled sites to the proper configuration file.For example, let's say you have the following structure:
In sites.php, you need the following:
Only Domain Access sites need to be listed in sites.php -- along with any aliases for those domains.
If you only run one site under DA, that can be the "default" configuration folder, and you would not need sites.php.
When you get this running, please consider adding a handbook page.
Comment #2
adamf321 commentedHi,
I have some more questions on Drupal set-up for DA:
I'm working on a suite of 4 travel sites that will share a single Drupal instance using multisite. The sites will share some data (package holidays) as follows: site1 and site2 will share packages, site3 and site4 will share packages. I have some questions on how to set-up Drupal for multisite so that I can use DA to share data:
Do all 4 sites need to share the same database or can I use 4 separate database? Page 1 of the documentation for DA says clearly that they need to share databases, however I've read a couple of other articles which imply otherwise.
If sharing a single database, do they need to share tables (i.e. one table called "node" shared across all 4 sites) or can they use separate prefixes (e.g "site1_node", "site2_node", et al)?
If either configuration is possible, what are the pro's and con's of each?
Thanks for your help
Comment #3
agentrickardYou are mixing two concepts here. DA uses one set of tables for all sites; it uses Node Acccess to partition data. If you want to share content among all 4 sites, don't use multisite at all.
If you want to have _some_ sites in a DA cluster and others independent or, as it seems, you want to have two separate DA clusters, then you want to use the sites.php trick mentioned in comment #1.
If you do that, I don't advise sharing any tables between the two. You could share users and roles via table prefixing. In that case, normal multisite rules apply. Never, in any event, should you prefix and share node tables.
Comment #4
adamf321 commentedOk, I get what you mean about multisite and DA/data sharing being different concepts. The reason I was planning to use multisite is that I will have a lot of shared functionality between the sites.
But are you saying that with DA I have one instance of Drupal, one set of tables, and DA makes it look like multiple sites by controlling which theme and data to display based on the url visited?
Comment #5
agentrickardYes.
And you can run a DA cluster within a traditional multisite as well, as described in comment #1. Certainly it vcan make sense to have the shared modules and features offered by multisite. I just would not mix the table-sharing feature of mutisite with DA.
Comment #6
bluegeek9 commentedDrupal 7 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.