[documentation] Sharing content/users between Drupal sites (was Re: multi site docs)

Larry Garfield larry at garfieldtech.com
Sun Oct 8 05:37:13 UTC 2006


On Friday 06 October 2006 23:52, Boris Mann wrote:
> 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.

No symlink, explicit base_url set:
http://myserver/mysite/ - Main site correctly.
http://myserver/mysite/foo - Page not found from the main site.
http://myserver/mysite/?q=admin/settings - Main site settings page.
http://myserver/mysite/admin/settings - Main site settings page.
http://myserver.mysite/foo/?q=admin/settings - Main site settings page.
http://myserver.mysite/foo/admin/settings - Page not found from the main site.

Symlink sites/myserver.mysite to sites/default:
http://myserver/mysite/ - Main site correctly.
http://myserver/mysite/foo - Page not found from the main site.
http://myserver/mysite/?q=admin/settings - Main site settings page.
http://myserver/mysite/admin/settings - Main site settings page.
http://myserver.mysite/foo/?q=admin/settings - Main site settings page.
http://myserver.mysite/foo/admin/settings - Page not found from the main site.

Move sites/default to sites/myserver.mysite, so there's no default dir at all:
http://myserver/mysite/ - Main site correctly.
http://myserver/mysite/foo - Page not found from the main site.
http://myserver/mysite/?q=admin/settings - Main site settings page.
http://myserver/mysite/admin/settings - Main site settings page.
http://myserver.mysite/foo/?q=admin/settings - Main site settings page.
http://myserver.mysite/foo/admin/settings - Page not found from the main site.

(That is, it doesn't work in any situation above.)

We may want to move this to a different list, since this is turning into 
debugging rather than documentation. :-)

-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the documentation mailing list