Mutli-site Install

Events happening in the community are now at Drupal community events on www.drupal.org.
OSC's picture

I was wondering if anyone could help me troubleshoot a multi-site install on Dreamhost. As far as I can tell, I'm doing everything right but when I go to the subdomain it never shows me the install screen for drupal, giving me instead a 404.

Here's the relevant info.

The main site is champsnotchumps.org at "localhost.champsnotchumps.org"
The site I'm trying to set up is at "dodson.champsnotchumps.org"

The first site is already up and I've set up a working domain for the second using Dreamhost's web panel.

I created a new MySQL database in the dodson.champsnotchumps domain called "cnc_dev_drupal"

I created a subdirectory in /home/username/champsnotchumps.org/sites called "dodson.champsnotchumps.org" and put in this folder the default.settings.php file as well as a modified settings.php file. Specifically, I changed $db-url to = 'mysqli://username:password@dodson.champsnotchumps.org/cnc_dev_drupal' and changed $base_url to = 'http://dodson.champsnotchumps.org.'

Okay, all that should be left is the symbolic linking, right? I suspect this might be where I'm running into problems.

Okay, so I deleted the dodson.champsnotchumps.org directory Dreamhost created in /home/username.

Next, I logged into the shell using SSH and the Terminal program for the mac.

I executed the following command: ln -s /home/username/champsnotchumps.org /home/username/dodson.champsnotchumps.org

When I visit the /home/username directory in my ftp program I see a shortcut icon with the name dodson.champsnotchumps.org.

I should be done, right? But when I visit 'dodson.champsnotchumps.org/install.php' in my web broswer it informs me that it can't find the file and then says "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." There is definitely an install.php file in champsnotchumps.org that the symbolic link is supposed to lead the browser too but it's not.

I know that dodson.champsnotchumps.org is active because when I visit that link directly it asks me to login to phpmyadmin which, according to Dreamhost, is what it should do.

Any idea what I might be doing wrong? I'm stumped!

Thanks so much!

Tom.

Comments

htaccess

ttamniwdoog's picture

Check to make sure your .htaccess is there and setup correctly.

.htaccess

OSC's picture

I downloaded and made this file visible on my Mac, but looking at it I'm not sure what I need to change to set it up correctly for multisite. Thanks, though, will keep working on it and looking for documentation.

Thomas Dodson
Staff Assistant
Harvard University
Office for Scholarly Communication

Symbolic Link

OSC's picture

Maybe the symbolic link should be this??:

ln -s /home/username/champsnotchumps.org /home/username/champsnotchumps.org/sites/dodson.champsnotchumps.org

Instead of:

ln -s /home/username/champsnotchumps.org /home/username/dodson.champsnotchumps.org

Or am I just confusing myself.

Thomas Dodson
Staff Assistant
Harvard University
Office for Scholarly Communication

No, I think you were right

bdimaggio's picture

No, I think you were right the first time. If Dreamhost has set up DNS to look for "dodson.champsnotchumps.org"'s http docs directory in /home/username, that's where you want to put the symlink of the same name.

FWIW, I tried going to just dodson.champsnotchumps.org and wound up getting bounced to a phpMyAdmin login prompt (at http://www.champsnotchumps.org/dh_phpmyadmin/dodson.champsnotchumps.org/). Is it possible that you created a database host with the same name as your intended sub-site?

doh!

OSC's picture

um, yeah, that's totally what I did. I set up a MySQL database host instead of a sub-site domain. That explains a lot . . . Thanks!

Thomas Dodson
Staff Assistant
Harvard University
Office for Scholarly Communication

Dreamhost Mirroring

eporama's picture

actually, the best thing I've found with my dreamhost sites is to use their "mirror existing site" instead of setting up a new site.

So I have my mainsite set up with the document root pointing to the Drupal installation folder. Then a secondary site in Dreamhost terms is just mirroring the existing main site.

Drupal handles the fact that the two sites are different and as long as the sites folders are set up appropriately will give you the two separate sites.

Case Closed

OSC's picture

Hey, thanks guys. Got it working!

Tom

Thomas Dodson
Staff Assistant
Harvard University
Office for Scholarly Communication

Boston

Group categories

More Specifically

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: