Setting up Drupal multi-site on DreamHost

Comments

Anonymous's picture

Hi,
thanks for the post, definitely useful for me, as a very newbie in all this.
My question: where do you upload all the drupal files?
I did it under home/username/domain1.com/drupal but then my website name ends up like www.domain1.com/drupal which i want to avoid. ( tried to specify it in settings.php, but not much success :( )
Any tip? ( I am also in dreamhost)

thanks

root's picture

@ laura

Place the files in "home/username/domain1.com" not "home/username/domain1.com/drupal"

On dreamhost when you add a new domain name the system creates a domain.com folder, thats the document root for that domain.

Hope this helps.

cheers,
Ivan

crios's picture

I would like to setup a multisite installation with 2 separate databases (is there any advantage to using 1 database?) but instead of domain1 or domain2 I'd like to use:
sub.domain.com/foo1
sub.domain.com/foo2

I've tried following the directions here but they don't seem to work on Dreamhost. I get a standard install that ignores the sites folder.

t.a. barnhart@drupal.org's picture

i have taken a domain (projectc.net) that is just the domain we bought to point to the "real" site, projectc.com (we also bought .org). i set its web directory (using the DH web panel) to my main drupal install (btc.com). i made the necessary folder in sites: btc/sites/projectc.net/ and added a clean settings.php

no symlink

wait 10 minutes

go to projectc.net -- voila, drupal install dialog

my conclusion: symlinks are not needed here. i'm going to run this past DH, but perhaps the setting of the web directory acts, or is, a symlink?

is this something you've done? if it really is this simple, then i will be a happy wee camper.

t.a. barnhart@drupal.org's picture

my domain1 works fine.
i created sites/domain2
copied in a clean settings.php to that folder
made my symlink

(btw, DH shows the server - in my case .poly - when you use ftp to look at things; that's a bit confusing, but it appears to be optional to include it)

then when i go to my site, i get the internal server error

in the webhost panel for domain2, i have the web directory for site2 set to site2 -- in looking at other ways of doing this multisite gig, one suggested having the web directory point to site1. i thought symlinks precluded the needed to do that or redirecting. whatever the case, i am not getting the install; just the 500 error.

tia,
t.a.


later:

i tried a couple of things that worked, but i'd like your feedback (because the rest of your directions were so simple & clear).

for domain2, i mirrored it to domain1.
for domain3, i set the web directory to domain1.

both options worked. what i have not tried is if that works without the symlinks.

rhache@drupal.org's picture

Do you have any idea how it's different if you want them to share a db?

Thanks for the article.

ivan's picture

I have not setup a multi site over a shared db. But i did find this article on drupal.org.
check it out:
http://drupal.org/node/147828

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <pre> <h2> <h3> <h4> <h5> <h6> <hr> <blockquote> <p> <br>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.

More information about formatting options