Multisite

Events happening in the community are now at Drupal community events on www.drupal.org.
This group should probably have more organizers. See documentation on this recommendation.

Hello and welcome.

I'm running several sites using Drupal's multisite feature, and noticed the absence of a group to discuss the various issues and how-tos related to doing this. If anyone has any questions about the basics, I can probably answer them. I'd also like to see some tutorials about more advanced stuff like sharing database tables.

aaront's picture

Where to draw the line between sites, concentrating on data sharing, linking, and stability

I'm working on a migration to Drupal for a small university, roughly 2500 students and we're trying to figure out how many sites, what deserves its own site and what departments should be mixed together.

Read more
manogolf's picture

Undesired linking between sites.

Since creating a multisite installation I've noticed the sites are linking to one another. Server stats are showing links that I'd rather not see. The sites are unrelated.

Is this a typical side effect? What is usually done to block linking between sites?

Thanks,

Jerry

Read more
Sunshiney's picture

What are you doing re location/naming of sites/domain.com/files/images directory for dev and prod site sync?

I'd like to learn how to sync the files/images paths of my multi-site dev site to its live site so that I can stop having to replace the path names within mysql every time I update the database of one or the other.

Dev site image path: sites/water.uida.local/files/images
Live site image path: sites/water.uida.edu/files/images
OS: XP local and Win Server 2003 for live Apache 2triad on both

While using relative paths, I still have to change water.uidaho.edu to water.uidaho.local when I update the dev site's database with the live site's database.

Read more
EJr2009's picture

Is there something strange about Multisites using Drupal 6 and Ubuntu 9

Hi,

I am hoping you can help me. I work for a university and have recently been assigned to a project working with on-line community portals built using Drupal. I am trying to set up a sandbox system that I can play with, so that I don't mess up the actual sites. The problem I am having is setting up multisites using the same code base. I can get a single site set up and running just fine, however every time I try and set up multisites everything stopes working. I have followed all the instructions I can find on-line including these from the Drupal site:

Read more
belliez's picture

Multisite Testing before going live

Hi,

I have my server set up and running several drupal multisites and all works great and really pleased with it.

On the same server I host another website (basic html based) which I am replacing with a drupal site. However, until the drupal site is 100% I want the html website to remain live until I switch it to the drupal multisite.

I am wondering how I can create and test a multisite on my server so that people visiting www.myWebsite.com still only see the html website until the drupal is ready?

Read more
foxtrotcharlie's picture

Multi-sites with bazaar (bzr) and symlinks

I have a question about a multi-site folder setup, and bazaar workflow.

I'm thinking of setting up a bzr repository for each individual site, and then a repository for the sites/all folder, plus one for core. Does this sound like an acceptable way to do it?

Then, onto the symlinks:

Firstly, is it best practice to store each individual site folder as a symlink?

For example, say this is my sites folder:

sites
-all
-default
-site1.com
-site2.com

Read more
thedrake's picture

Is Domain Access the right choice?

Hello,

I'm hoping someone can tell me if the Domain Access module would allow me to realize the following scenario:

Suppose I have a Drupal site (siteA.com), and a custom module that serves up some subset of the site's content via the url siteA.com/b, wrapped in a different theme.

Suppose I also have the domain siteB.com, whose DNS settings cause both sites to serve the same content.

Further suppose that I now want to make siteB.com serve the content currently located at siteA.com/b (and continue down the path, so that siteB.com/c serves the content located at siteA.com/b/c)

Read more
drm's picture

Sharing tables after the fact

I've got a drupal multisite - different domains for the sites - with no shared tables or databases. But they do actually all have the same user accounts (though different roles for those users), and I want to have people log in once and then be logged in on all the sites.

To use multisite login, the users tables must be shared, and I think sessions also? Is there an issue with making these tables shared after the fact when there are already users tables in each database?

Alternately maybe I could just use the hook_user with op-login and copy the sessions table row to other sites?

Read more
ivan zugec's picture

Access shared database tables on different server

Hi,

I have been working on setting up a multisite + single sign on site, I did this by adding the following to the settings.php.

$db_url = 'mysqli://username:password@localhost/databasename';
$db_prefix = array(
    'default' => '',
    'authmap' => 'shared.',
    'role' => 'shared.',
    'sessions' => 'shared.',
    'users' => 'shared.',
);

It's working fine if all the databases are on the same server.

But is there a way of telling Drupal to connect to a different mysql server to access the authmap, role, sessions and users tables?

Read more
otavio's picture

merged multisites are missing Profile admin menu and Profile user tab

Hi, I am having a bizarre issue.

We've upgraded and merged serveral 5.x sites to 5.20 same code base w/ diff databases.

  • When I go into a user, I don't see the Profile Tab
  • The main User Admin menu does not have the Profiles menu item
  • When I go into the modules, the Profile Module exists and is enabled
  • The same is happening for all sites in that code base

I tried enabling and re-enabling

Any clues? or ideas on how to troubleshoot this?

thanks!!!!

Read more
apemantus's picture

Changing the node value of an aliased site on the fly

I can't think of a better title sorry...

I'm using the (excellent) Domain Access module. One thing I'm doing is aliasing sites. As an example.co.uk is aliased to example.com. So going to example.co.uk/foo is identical to going to example.com/foo.

However, there are one or two pages (in a large site) which I want to be different. So example.co.uk/contact would go to a different page than example.com/contact.

The "easiest" way (if horrendous in some respects) seems to be to add code (to theme_preprocess_page? to settings.php? custom_url_rewrite_inbound?) that says:

Read more
Anonymous's picture

I'm lost with multisite

sorry for stressing with newbie questions. I've read several posts about multisite, but I can't find my same situation:

I have VPS centos, Plesk 9.2.2 and I'd probably be able to edit "etc/httpd/conf/httpd.conf" file.
I don't have root access, nor idea about symlinks.
I can create many databases.

I like to have:
- unique code base and basics-modules in var/www/vhosts/site1.com/subdomains/drupal/httpdocs
- spedific-modules and themes in domains site2.com, site2.it, etc
- single database for each domains and main subdomain

Read more
Anonymous's picture

Multisite bootstrap.inc - conf_path modification

Hello, I'm a newbie in the world of web-design, and 3 month ago I had an idea of a site which i now what to put it in practice. The great idea:

  1. 4 domains
    • domain1.tld
    • domain2.tld
    • domain3.tld
    • domain4.tld
  2. 6 subdomains, the same 6 for each of the domains
    • subdomain1.domainX.tld
    • subdomain2.domainX.tld
    • subdomain3.domainX.tld
    • subdomain4.domainX.tld
    • subdomain5.domainX.tld
    • subdomain6.domainX.tld
Read more
sethcohn's picture

Location module in use by any of you for multisites?

As posted as an issue in location (http://drupal.org/node/610620)

<

blockquote>
The way location_instance is a multi-type table, storing both uids and nids, means it's (nearly) impossible to share this table between 2 sites...

A typical multi-site shared db does something along the lines of this:

DB A - Only Nodes in Site A , Shared Users
DB B - Only Nodes in Site B, Shared Users
DB User - shared with both A & B, contains user tables, sessions, and other tables that are user related, so both sites can access non-node based info.

Read more
btopro's picture

Aegir / Network Manager integration?

While @ Drupalcamp Montreal I gave a talk on the Network Manager and how it's helping us manage our sites (see screencasts for usage). Right afterwards I (finally) was able to watch someone walk through everything that Aegir provides. I realize that Aegir is more hosting company in a box focused and my project is for things much smaller in scope (some overlap but totally different context of usage). I was wondering though if there might be a way of tying some of the functionality of the network manager into Aegir.

Read more
rgiuly's picture

Multisite newbie question

I'm having trouble getting multisite working, probably because I don't fully understand how the system works.

Lets say my domain name is hello.com

I have a drupal site installed in public_html, which works fine.

(So I can go to hello.com and it works.)

Like all multisite users, what I'm trying to do is set up another site with the same code base:

I copied /public_html/sites/default/ to /public_html/sites/testsite1.com
I copied default.settings.php to setting.php in testsite1.com

Now what I don't understand is how to get to testsite1.com

Read more
husainsn's picture

Drupal and Astrisk (VOIP) server using same database

Hello

Read more
aaronchristian's picture

Need help with multisite installtion on Mac OS X v10.5 Leopard!

Hello,

I am completely exhausted with all my attempts at trying to get this to work. I have recently been building up several different multiple site installations. As it was getting to be a hassle with updating every site's modules, core etc, I wanted to start and test out a multisite installation. I am also currently running XAMPP, not MAMP like most of the other solutions out there. I currently have my http://localhost pointing to "/Users/aaronchristian/Sites/htdocs" instead of the default #DocumentRoot "/Applications/xampp/xamppfiles/htdocs".

Read more
wwwclaes's picture

Shared login box to multisite with separate user tables?

Hi, I have setup a multisite (with subdirectories) with separate user tables. We have a "front site" and X number of multisites, where each user belongs to (typically) only one of the multisites. Now we want to enable a shared login at the front site and the requirement is that the login box should only present user name and password, ie not a selection of the subsite to login to (that would complicate the login for user which should be as smooth as possible).

Read more
Subscribe with RSS Syndicate content

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: