I am in the process of creating a multisite drupal site under Dreamhost. I am running into a few snags and the list below is what I have done so far.
1. set up domain1.com with panel.dreamhost.com under /home/username/drupal. Main site working. ~/drupal forwards correctly to domain1.com
2. set up main settings.php to share users/roles/sessions with 'shared_' table prefix default table prefix is 'main_'
3. created sub.domain.com under /sites/ and copied main settings.php to /sites/sub.domain.com/default and changed default $db_prefix to 'site2_' all others 'shared_'
4. Using panel.dreamhost.com, I created a subdomain and pointed it to ~/drupal/sites/sub.domain.com. I did this to avoid creating symlinks like pointing ~/sub.domain.com to ~/drupal/sites/sub.domain.com
When I browse to sub.domain all I get is the index with a directory listing which only has 'default' as it should if drupal was never installed.
How can I get drupal to 'see' the other site and update the database accordingly via install.php?
Thanks!
Comments
Symlinks worked for me
You are avoiding symlinks, but ln -s ~/drupal/ ~/sub.domain.com works well on DH.
I think I found another way
I think I found another way to do it.
when in panel.dreamhost.com I set both sub.domain.com and domain1.com to ~/drupal.
So instead of going:
panel.dh.com > symlink > ~/drupal I just had panel point to drupal itself.
I don't really like symlinks, if you go nuts with them they make managing harder than it needs to be, this is working and it's less clutter on my directory.
Good tip, I'll keep it in
Good tip, I'll keep it in mind for the future.
Any assistance appreciated
Any assistance appreciated for another Dreamhost customer, getting shitty attitude from customer support. I'm using symlinks, and when I try and login to the subdomain, it doesn't log me in and instead redirects to the main domain. Any thoughts?
[update] I set the base URL in settings.php for each site, which prevents the redirect from subdomain to main site. However, now when I log in, I get an 'Access Denied' error :(