Hi,

I’ve got several parked domains in my main domain (maindomain.org), and drupal multisite installation works fine for them all. I want to set up another drupal site on a subdomain, sub.maindomain.org, but can’t get it to work. I'm using bluehost, and am hoping someone can provide advise ...

Here’s what I’ve done:
- Created subdomain with document root public_html/sub
- Deleted public_html/sub directory
- Set up a symbolic link for public_html/sub, with target public_html/sites/sub.maindomain.org.
- Copied the drupal default.settings.php to public_html/sites/sub.maindomain.org/settings.php (nothing else in the directory except favicon.ico)

But when I try to open sub.maindomain.org in the browser I get “You don't have permission to access / on this server. … Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”

I know the symbolic link works (I’ve tested it with an index.html in public_html/sites/sub.maindomain.org). And I’ve set the permissions on everything to r/w/e for everybody.

I’m clearly missing something in terms of my setup and my understanding of how drupal multisite works. Can somebody suggest what I might be missing or what needs to be done?

Thanks,
John

Comments

VM’s picture

if this is another multisite there is no need to use a symbolic link. Point the subdomain root to the main drupal install. Drupal will do handle the rest via the index.php of the main site.

ie: a call to the subdomain will run index.php
index.php will scan the sites folder for match of the subdomain and use that settings.php file

johnln’s picture

Thanks VM, that worked for me.

gregsmith’s picture

When you say 'Point the subdomain root to the main drupal install'
Do you mean with htaccess?

VM’s picture

no. on the host server. ie: when setting up the subdomain. you should have an option to change which folder it points to.