Multiple sites with one db

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/3/2007 5:56:31 PM
Gravatar
Total Posts 18439

Re: Multiple sites with one db

If the domains actually point to the separate directories you shouldn't need any redirecting. This sounds like the same issue you had with the first site. Are you sure all the files made it to the 2nd site?

Joe
2/3/2007 6:04:44 PM
Gravatar
Total Posts 21

Re: Multiple sites with one db

oh the both sites come up fine

but even though they are in seperate directories, they both want to use the data related to SiteID 1, which should only be going to http://www.gamedruid.net

I need to some how tell my second URL Http://www.rtgc.org to use a new SiteID 2

just seems like I'm missing that relationship for some odd reason

 

2/3/2007 6:11:07 PM
Gravatar
Total Posts 18439

Re: Multiple sites with one db

One site has to be the master site. In the master site make sure the AllowMultipleSites setting in Web.config is set to true.

Then go to Admin > Site Settings in the master site and you will see a dropdown next to site name. Chosse create new site and then name and save the site. Now you will see more options below to add a host name for the site this will make it use a different siteid.

In the second site you will have to manually copy the Data/Sites/1 folder and name it Data/Sites/2

Joe
2/3/2007 6:30:52 PM
Gravatar
Total Posts 21

Re: Multiple sites with one db

Getting closer now :)

I had created teh New site.. but not from the master..so yeah.. it screwed it all up,

but I did copy 1 over to 2 but now get the following error:

The file '/mojoRT/Data/Sites/2/skins/layout.Master' does not exist.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The file '/mojoRT/Data/Sites/2/skins/layout.Master' does not exist.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): The file '/mojoRT/Data/Sites/2/skins/layout.Master' does not exist.]
System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +3366759
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +109
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +51
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +90
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +103
System.Web.UI.Page.get_Master() +48
mojoPortal.Web.mojoBasePage.OnPreInit(EventArgs e) +157
mojoPortal.Web.UI.Pages.SiteHome.OnPreInit(EventArgs e) +5
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +521


2/3/2007 6:46:27 PM
Gravatar
Total Posts 18439

Re: Multiple sites with one db

The path /mojoRT/Data/Sites/2/skins/layout.Master is incorrect, there should be a skin name in there like:

/mojoRT/Data/Sites/2/skins/[skinname]/layout.Master

Check the mp_Sites table and make sure the site with siteid 2 has a skins name that corresponds to a skin folder.

The other thing is it could just be a cache issue. Maybe type a space in web.config and save it and upload it again to make the application recycle. This will clear the cache.

Joe
2/3/2007 7:11:35 PM
Gravatar
Total Posts 21

Re: Multiple sites with one db

Ok, got it going..

the error was actually caused because no skin was actually selected at the time..

mainly caused by my lack of understanding :)

having the 2 paths.. ment I needed to have basicly the SiteID 2 directory listed on both paths.

makes sense now lol... thanks again for all the input and time.

hopefully I'll get my skins going and be ready to think about some of the moduals/features I might try to build :)

You must sign in to post in the forums. This thread is closed to new posts.