I was not sure where to post this, in this forum or Installing Drupal since I already have a running installation and am trying to "add" multisite to it. So I apologize if this is the wrong place.

As I mentioned I have a site working fine at mysite.org on Dreamhost
I am trying to learn how to add additional "multi" sites to/under it, so I have the following folder structure in place.

mysite.org
mysite.org/sites
mysite.org/all
mysite.org/default
mysite.org/sites/multitest.mysite.org
mysite.org/sites/multitest.mysite.org/all
mysite.org/sites/multitest.mysite.org/default

I created a symlink using:
ln -s /home/username/mysite.org /home/username/multitest.mysite.org

I want to use different databases for each site so I have made that change to the settings.php under multitest.mysite.org.
I've also tried a couple of base_url changes in the same settings.php file

The problem I am having is both multitest.mysite.org and mysite.org display mysite.org

I am wondering since, I have never attempted to use symlinks before could my error be there.

Thanks in advance for any help.

Comments

gpk’s picture

That folder structure looks a bit odd. For a start, get rid of ....../multitest.mysite.org/all and .../default.

If the doc root for mysite.org is pointing to /home/username/mysite.org then you should have something like:

/home/username/mysite.org
                   |-index.php (and other Drupal files)
                   |  ...
                   |-includes (directory)
                   |        |- (various stuff in here
                   |        --    etc.)
                   |  ...
                   |
                   |-sites
                   |   |-all (you can put "shared" contrib modules and themes here)
                   |   |-default (I assume the settings.php for mysite.org is here)
                   |   --multitest.mysite.org (the 2nd settings.php goes here)
                   |
                   ...

gpk
----
www.alexoria.co.uk

technobrarygeek’s picture

Putting the settings.php in the correct location has AMAZING results. lol Removing the /all folder was disappointing. I had the understanding I could place a customized theme there for each multisite. I'll have to read up on that.

Thanks for you eagle eye.

gpk’s picture

The sites/default/ folder contains settings.php for mysite.org and can contain other folders: sites/default/themes for any custom themes only available to the one site; sites/default/modules for any custom modules only available to the one site.

Rinse and repeat with sites/multisite.mysite.org/ ...

gpk
----
www.alexoria.co.uk

kim-day’s picture

Sharing themes among your sites in a multi-site install will work -- just put the themes you want to share in /home/username/mysite.org/sites/all/themes.

technobrarygeek’s picture

Thanks to you both.