sharing one MSSQL2005 database over multiple domains/sites

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.
8/5/2009 8:44:51 AM
Gravatar
Total Posts 7
/PLU01

sharing one MSSQL2005 database over multiple domains/sites

Hi,

I am new to Mojo, but I like it very much. And finally I managed to install it in my (polish) shared hosting env http://www.amm.pl/.

I have only one MSSQL2005 database there in hosting plan, while domain count is limited to 8.

Can multiple Mojo sites share and run on one MSSQL2005 database?

Does MSSQLOwnerPrefix mean that setup can create different Schemas according to this setting ? In other words, does Mojo make use of MSSQL Schemas introduced in 2005 version?

Regards!

8/5/2009 8:54:54 AM
Gravatar
Total Posts 18439

Re: sharing one MSSQL2005 database over multiple domains/sites

Hi,

That config setting is only for situations where you are not allowed to have a db user who is the dbo (database owner). Do not change that unless you are in that situation. Never change it after a site is already working.

Ideally you would have 1 installation with a fixed ip address, then you can point all the domains to that ip address and use host name based multi sites.

It "may" be possible to have different physical installations using the same db but that will be a complicated scenario at upgrade time. You would have to upload the new files and upgrade the first site, then the other may be broken unntil you upload the files to those installations.

You would get the first one working first, then setup the next one pointing to the same db, but you will have to then "create" the second site from the site settings of the first site and configure the host name for it. Until you do that the second site will show the same content as the first site. Whether you can get this working is a "your mileage may vary" depending on your host and your own knowledge and skill configuring things. 

Hope it helps,

Joe

8/5/2009 9:20:57 AM
Gravatar
Total Posts 7
/PLU01

Re: sharing one MSSQL2005 database over multiple domains/sites

Hi, thanks for the quick answer.

Uhm. I don't think I will go on with some unofficial deployment methods, not knowing what future releases/upgrades might bring.

But 'host name based multi sites' sounds like the solution. In shared hosting - does this mean that I can just set HELM's domain aliases to point to the (master) instalation and then add coresponding sites to Mojo?

If not, I will go deploying with MySQL since I can have plenty of them ;) in my hosting account. That would be simpler, I think.

Thanks!

8/5/2009 9:34:49 AM
Gravatar
Total Posts 18439

Re: sharing one MSSQL2005 database over multiple domains/sites

I don't know if it will work with domain aliases or forwarding schemes that your host may be using, maybe. It definitely works if you can get a fixed/dedicated ip address and point all the domains to the same ip address. I know there are problems with GoDaddy and their url forwarding so I'm dubious, it just depends on how they are doing it.

Hope it helps,

Joe

8/5/2009 10:06:33 AM
Gravatar
Total Posts 7
/PLU01

Re: sharing one MSSQL2005 database over multiple domains/sites

Okay, in my situation I will simply say 'bye' to mssql :) and try out the MySQL deployment. If any issues occur, I will let you know.

Many thanks for your support!

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