Hi Everyone.

I have been working on developing a new site and I have reached a new point that I need some help with.

I am looking to have multiple sites working from 1 installation of drupal. Each site will be based around a region.

I have been using domain access module to try and get this working.

The domain structure for the site is as follows:

main install = website.com/drupal
each city = city1.website.com, city2.website.com, city3.website.com

I have created the subdomains on my server and specified the directory to be sites/city1, sites/city2

Do I need to have the settings.php file in a directory like sites/city1/drupal since my main install is in a separate directory?

I know that the subdomains are setup properly, because if I go to city1.website.com/index.html it shows up in the browser.

I have included a settings.php for each subdomain and set it for write capacity.

However, I still get an error for 500 when I go to city1.website.com. No drupal site comes up.

What am I doing wrong? It seems like the subdomains are setup but I can't get the drupal install working for each city.

There has to be a step that I am missing to get this to work.
Do I need to redirect the site? Special changes for the settings.php?

I need to have a shared user table so that users can view other sites other than the region they are assigned to.

Is it possible to have separate databases for each site while still sharing the user tables?

I want to be able to have a default theme for the website, but different style for each region. How could this be done?

Any help would be greatly appreciated!

Thanks!

Comments

shadcn’s picture

have u tried doing this without domain access

http://drupal.org/node/580034#comment-2222478

UnitedVision’s picture

I tried following those instructions and I still get a 500 error. should the directory under sites be sites/city or sites/city.website.com

I tried both and neither work. again I know the directory works with dns because I can go to city.website.com/index.html

ryanhunt’s picture

I have a multi site set up with separate sites accessing common user tables.

It can work. search for the tutorial here on drupal.org. if you can't find it I will try to dig up the link I used.

I had a similar problem getting 500 error. I think I solved it through Apache.

You need to properly define the Location section if i remember right, and then make sure the Options are set correctly and finally permissions.

I can tell you however, that using the multi site single user db preferred to have abc.site.com/sub1, abc.site.com/sub2 or even def.site/sub3

this way you would store your site as:

abc.site.com.sub1
def.site.com.sub3
etc...

This way Apache can handle the locations.

Also I was not able to get nice urls working with this which is not a problem for me, but it does mean that the ?q= designates the query path.