Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CS Nuglet: Setting up Multiple Communities on a Single Server

This was written by Kevin Harder instructing a user on how to setup Multple Communities on a single server.  There are other resources for this configuration like here in the CS developer wiki, but Kevin's step-by-step instructions really simplify the process. 

1. Install Community Server on your web server in one physical location and using one database
2. In IIS, setup virtual directories for each of your communities that all point to that same physical location (i.e. domain.com/vdir1)
3. Modify the communityserver.config file to set EnableVirtualization=TRUE  (default is false)
4. In your Community Server database, run the cs_system_CreateCommunity stored procedure for each of the communites.  More info about this proc is here:  http://developer.communityserver.org/default.aspx/CS.MultipleCommunityInstallations

For the domain parameter of the stored proc, be sure to enter your domain and virtual director for the community. An example set of params would be:

EXEC cs_system_CreateCommunity 'cs.domain.com/com1', 'com1', 'admin_email@domain.com', 'admin', 'password', 0, 0

Note that the Application Name parameter ('com1' in the above example) needs to be different for each community as well as the URL.

[tags: Community Server, CSMultiSiteConfig]

Comments (7) | Post RSS RSS comment feed

Posted on 5/20/2006 9:23:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (7) -

5/22/2006 1:28:31 PM Permalink

Thanks for sharing this info.

What happens, if i have my first community in the root folder of the domain (i.e. domain.com) and i decided to create a second community as a subdomain, (i.e support.domain.com)? what i have to do?

Martin Schaible |

5/22/2006 1:36:50 PM Permalink

Martin, I'm 97% sure your root directory has to be clear since there would otherwise be communityserver.config conflicts.  

daveburke |

5/22/2006 2:04:44 PM Permalink

I had the same idea, but i won't believe it. Moving the files is one thing, but I'm a bit affraid about the changes in the database i have to do, i guess.

I own a professional version. i was told, that only one instance of the CS server must be installed. That was the reason i  installed it into the root.

What do you think about this?

btw: i like the captchas. are thy from the donwload area?

Martin Schaible |

6/17/2006 7:04:10 AM Permalink

Martin, I am SO SORRY that I somehow missed this comment when you wrote it.  I'm still getting my head around the various CS multi-site configuration options and have since learned a CS root community and multiple sub-communities is possible.  I'll start another quest after I finish my Single Sign-On quest.  Please email me with any questions and I'll be sure you get plugged-in to the people who can help you.

The CAPTCHAs are something I grabbed from Code Project and modified to work with dotText, then for CS 1.x, and then for CS 2.0 in ASP.NET 2.0.  It's been an old friend.

daveburke |

3/29/2007 7:08:04 AM Permalink

I think that setting up CS on multiple domains is documented extremely badly.

I have attempted to implement this several times and get the following error:

Unrecognized configuration section 'connectionStrings'

Anyone come across this before?

Chris Lawrence |

3/29/2007 7:12:49 AM Permalink

That sounds like you're using an ASP.NET 2.0 web.config file under ASP.NET 1.1, Chris.

daveburke |

3/29/2007 8:13:58 AM Permalink

Thanks....That fixed that problem...

I could really do with step by step "numpties" guide to implementing seperate domains for blog and forum as we still haven't managed to get this working

:o(

Chris Lawrence |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke