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.

alphex's picture

Best Practices for Multi Site usage.

I'm looking for some help with best-practices, and pointers to effective documentation to help me set up a multi-site install to help give student groups at the .edu I work at, a real effective web environment.

The messy way to do that is to just deploy a new drupal site any time someone wants a new student group website. But thats just asking for problems down the line with patching and management... I know how to do that, and, I know the minefield that presents when the many different student groups all want websites...

Read more
jfmoore's picture

Multi-site weird behavior

Here's the way I set up the sites:

  1. Installed Drupal 6.12 into mydomain.com/multisite

  2. Created separate database for subsite1

  3. Created directory multisite/sites/www.mydomain.com.subsite1

  4. Copied settings.php to new directory, entered new database info, and uncommented the base url line and changed it to $base_url = 'http://www.mydomain.com/subsite1';

  5. In SSH client, I navigated to home/myaccount/public_html and created symlink as follows:
    ln -s multisite subsite1

  6. In browser, went to mydomain.com/subsite1/install.php and installed without problem

Read more
snorkers's picture

Multisite Installations - Dev/stage workflow and folder naming

One thing I can't get my head around is how to set up the folder structure on my local development environment, then on a live host (eg sandbox stuff, site testing, demos etc).

Let's imagine on my local machine, with all the right virtual hosts set up as http://site1, http://site2, http://site3 etc, my drupal/sites folder would contain: drupal/sites/all, drupal/sites/default, drupal/sites/site1, drupal/sites/site2, drupal/sites/site3...

Read more
Garrett Albright's picture

Drush and Multisite

<

blockquote>EDIT: The below applies to Drush version 2. Drush 3's site aliasing makes life a lot easier, as there's a built-in alias which means "all sites." So running a command across all sites in a multisite is as easy as:

drush @sites <Drush command>

You'll be interactively prompted on whether you really want to run the command on all your sites; to automatically skip this (for non-interactive cron run scripts, for example), add a -y flag to the command. For example, you can create a root crontab entry which looks like:

Read more
apemantus's picture

What's the best way to structure a multi-country site (not just multi-language)?

What's the best options(s) to structure our multi-country site. The site probably wants to be managed off one installation, but it will be (in terms of thinking about it) country-based not language-based so for example:

www.example.com/ca/fr/widget/price would be in French with the price in CAN dollars
www.example.com/fr/fr/widget/price would be in French with the price in Euros
www.example.com/us/en/widget/price would be in English with the price in US dollars
www.example.com/gb/en/widget/price would be in English with the price in pounds etc

Read more
nicholas llewellyn's picture

Multi-site, single codebase drupal 6 installation using prefixed tables to share common data.

Hi there,

I'm attempting my first multi-site, single codebase drupal 6 installation using prefixed tables to share common data.

Background

Looking from the outside, I think the best way to explain my reasoning for this configuration is going to be module management, and to ease the development of the core facilities the site(s) will offer.

I'm attempting to split the rather large modules apart so I end up with subdomains offering the features the users require, here is the basic layout.

<

ol>

Read more
hunthunthunt's picture

Granular site access for multisite installations

Is it possible to have granular access for multisite installations.

Consider the following setup:

A portal site called, for example - mypets.com

with the following subdomains(multisites) - cats.mypets.com, dogs.mypets.com, turtles.mypets.com

Assuming all users are registered with mypets.com, would it possible for admins to then grant access to subdomains?

Read more
Anonymous's picture

Drupal "Page not found" in XAMPP Windows Multisite Installation

1:33 AM 05-May-09

My system:

XP Home SP3
XAMPP 1.7.1
Drupal 6.11

The chronology as follows:

  1. After installing XAMPPP, I installed Drupal 6.11 core as usual and settings.php URL is http://localhost/drupal6.

  2. I was able to login/out with no problem from the abv URL.

  3. Created new folders under /sites and changed settings.php to show up at these URLs:

http://ecomm.drupal6.localhost
http://ubercart.drupal6.localhost
http://test1.drupal6.localhost
http://test2.drupal6.localhost

  1. Added these lines in httpd-vhosts.conf

NameVirtualHost *:80

Read more
grawat's picture

Are there any working multisite search modules ?

I have a multisite steup with multiple sub-domains and I would like to enable search across all multisites. I found two modules :

  1. http://drupal.org/project/multisite_search
  2. http://drupal.org/project/apachesolr

But, both of them don't work currently because of reasons mentioned here:

  1. http://drupal.org/node/322048
  2. http://drupal.org/node/411262

Are there any other search modules that will work with a multisite setup ?

Read more
drm's picture

Different robots.txt rules for each site

I want to disallow spider roaming on some of my sites. I've added a Disallow line with the full domain to the robots.txt file. When I use the syntax checker recommended in Drupal's default robots.txt, it gives me a warning, saying that some spiders prefer an internal path - no domain. But it also says that I have no error (just warnings).

What are folks experience? Will the main search engine bots pay attention to the domain paths?

Read more
anotherdave's picture

Looking for Shared Roles, Shared Permissions but users restricted to own site.

Hi,

I have a multisite set-up, using the LDAP module for authenticating users (which means that all my users can log in to all sites). What I would like to happen is that each site inherits an "Editor" role when set up, with my list of standardised permissions. I can update the permissions in one place & this will affect the "Editor" role on each site.

What I don't want to happen is for a User to keep this role across sites - If you are in the Editor role in Subsite1, you shouldn't have the role in Subsite2, unless it is subsequently assigned to you.

Read more
makimaki's picture

Drupal Multisite on Media Temple Dedicated-Virtual 3.5 (dv Base)

Hi,

I recently purchased a server from media temple (dv) and am planning on going the multisite route with Drupal for two sites I currently own (let's just name them abc.com & xyz.com). Now, I've read some articles on how to do this and on a theoretical level, I kind of understand but most of the articles seem to focus on shared hosting like dreamhost, MT grid server, etc.

Read more
grawat's picture

vhost setup for multiple subdomains ?

Could someone please explain how to setup via vhosts (or symlink) multiple sub-domains to point to the same domain.I had my sites setup under a shared host so until now I had to create a sub-domain and park that on the main domain. However, I have now moved to a VPS and I was trying to follow this tutorial but http://drupal.org/node/111238 to setup vhost but its not clear to me if this will work for all sub-domains or I do I have a create a file every time I need a sub-domain to point to the main domain. Would appreciate any help.

Read more
hebhansen's picture

Multisites basic - Shared drupal, individual DB

Hey

I am setting up my first multisite and I can't seem to get started??? I do not operate a server. I am hosted in town!

1) I have my Drupal running as a standalone site
www.mysite.com
2) I created a subdomain for the new site
www.shop.sites.mysite.com
3) I created a DB for the new site
4) I copied settings.php to the root of the new site
www.shop.mysite.com/settings.php
5) settings.php setup in the new site

DB
$db_url = 'mysqli://myuser:mypass@mysql.host.dk:3306/db_name';
$db_prefix = '';

$base_url = 'http://www.shop.sites.mysite.com';

Read more
macieq's picture

"Page not found" on some pages

Hi, i have meny drupal installation on multisite. Everythings fine except one. I have problem with "page not found", but these pages exists... Its strange sometimes everythig is good another time is not.

Please have a look at www.dobrapraktykazeglarska.pl and go to some sub-pages. If you will observe the "page not found" issue and will know why it is, please tell me.

I am working on it for few days and I have no idea what couse this situation...

Read more
rovo's picture

MultiSite on Mediatemple

Hello,
I have been trying to configure a drupal multisite on Mediatemples GridService. I've followed and read every doc I could find on the subject, and still no success.

I've done a basic drupal install. Then added a second site into the sites directory. I then tried to sym link this second domain to the drupal install using this in ssh:
ln -s ~/home/12345/domains/dev.example.com/html/sites/domain2.com html

Read more
xavi1337's picture

Redirect Loop with second site

I have two domains I would like hosted off one install of drupal, domain1.com, domain2.com hosted on godaddy.com
I have installed drupal and have the first site up, however when trying to install the second site, domain2.com, I get a browser error saying "this page has a redirect loop, "The webpage at http://site.com/install.php has resulted in too many redirects".
I seem to get this error each timeI try to add a second domain.
Here are the steps I took
1.create new directory in 'sites' called 'domain2.com'
2.moved 'default.settings.php' into the folder and renamed it appropriately.

Read more
emptyvoid's picture

Multi-site symlinks conflicting with sub-site path aliases

Hello,
So here is my problem, I created a multi-site installation of Drupal using a single source tree with 50+ sub-sites using symlinks for each. The problem I have is if I try to create a page alias on a sub-site that is the same as another symlink sub-site directory Drupal will not display the page. Instead Drupal will validate the URL as the first sub-site's home page.
Here is an example

1) I have a default site at:
www.example.com

2) I have two sub-sites
www.example.com/math
www.example.com/arts

If on the math sub-site I attempt to create a page using pathauto like so:

Read more
dru29's picture

How do we: Check Download File Integrity?

What is the Linux command to check the file integrity of
the Drupal download file: .tar.gz?

Download: drupal-6.10.tar.gz
Size: 1.03 MB
md5_file hash: d8f222c260556b5d7c3ff41bdd251b3c

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: