[documentation] Sharing content/users between Drupal sites (was Re: multi site docs)
Boris Mann
boris at bryght.com
Sat Oct 7 04:52:39 UTC 2006
As wel as comments inline, I've also pasted in the "tree walking"
rules from settings.php at the end.
On 10/6/06, Larry Garfield <larry at garfieldtech.com> wrote:
> Using Drupal 4.7.3 on my Apache2/PHP5 Linux desktop:
>
> Code installed in:
> /var/www/mysite/
>
> Main url:
> http://myserver/mysite
>
> Intended location of sub-site:
> http://myserver/mysite/foo
>
> .htaccess file's RewriteBase set to:
> /mysite
>
> sites directory has the following entries:
> default (used for the main site)
Try actually putting in an myserver.mysite entry, rather than default
(you should be able to just rename default). It seems to be walking up
the path and "Defaulting" to default when it shouldn't be. In general,
I don't use default unless I am only running one site OR I actually
will symlink myserver --> default....just so it's clear what I
*expect* the default to be.
Also, set base_url's for both in settings.php. That's sort of a
general troubleshooting tip if you're having difficulties getting the
proper domain to resolve.
> myserver.mysite.foo
>
> Both sites exist and have basic configuration done. They are using different
> themes so that I can tell them apart. I do not have a base url set for
> either one.
> If I symlink /var/www/mysite/foo to /var/www/mysite:
There should be no /var/www/mysite/foo at all. If this does not work,
it's a bug.
I'm being anal about this, because documenting this the wrong way
is...well, wrong.
It is complicated by the fact that a combination of shared hosting DNS
and webserver set ups can make this look completely..well, different,
and again, really hard to troubleshoot and get working correctly.
So, we can actually only document very specific combinations if
hosting has things set up strangely -- "If your host uses cpanel, and
subdomains are created as directories, then you need to symlink".
-- Boris Mann
* The configuration directory will be discovered by stripping the
* website's hostname from left to right and pathname from right to
* left. The first configuration file found will be used and any
* others will be ignored. If no other configuration file is found
* then the default configuration file at 'sites/default' will be used.
*
* For example, for a fictitious site installed at
* http://www.drupal.org/mysite/test/, the 'settings.php'
* is searched in the following directories:
*
* 1. sites/www.drupal.org.mysite.test
* 2. sites/drupal.org.mysite.test
* 3. sites/org.mysite.test
*
* 4. sites/www.drupal.org.mysite
* 5. sites/drupal.org.mysite
* 6. sites/org.mysite
*
* 7. sites/www.drupal.org
* 8. sites/drupal.org
* 9. sites/org
*
* 10. sites/default
More information about the documentation
mailing list