cross and shared database

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

1/28/2021 12:39:03 PM
Gravatar
Total Posts 147

cross and shared database

Hello, I already have a mojo site on one domain and would like to make another one on another domain. but I would like to ensure that users registered on the first site can access both the first and the second. the two sites are based on MS-SQL as a database. is it possible to do this?

1/28/2021 1:24:18 PM
Gravatar
Total Posts 2186

Re: cross and shared database

Hi Massi,

I would suggest using the Multi-Tenancy feature and enable Related Sites Mode.

Thanks,
Joe Davis

1/28/2021 1:26:30 PM
Gravatar
Total Posts 47

Re: cross and shared database

Hi Massimiliano,

I think it is possible. You have to change a parameter in the web.config.

 

Approximately at line 300 you find:

    <add key="UseRelatedSiteMode" value="false" />
   

Changing the  "UseRelatedSiteMode" to "true", makes the magic.

1/30/2021 4:35:32 AM
Gravatar
Total Posts 147

Re: cross and shared database

I will certainly do some tests as soon as I can. thank you very much, and I will ask you for explanations as soon as I try to do so

1/31/2021 11:52:58 AM
Gravatar
Total Posts 147

Re: cross and shared database

if, however, I move the second domain to the same server as the main one, doesn't I need to do anything about the DNS ?

2/1/2021 10:26:04 AM
Gravatar
Total Posts 2186

Re: cross and shared database

Hi Massi,

You could get away with putting the sites on different servers but use the same database. Configuration could get tricky but it is theoretically possible.

Thanks,
Joe

2/1/2021 11:23:48 AM
Gravatar
Total Posts 147

Re: cross and shared database

therefore,

if i had the two domains on the same server, i mean same IP address, consider that i am talking about shared hosting on aruba. the steps to take are:

  • install mojo on the second domain, configuring it with the database of the first domain.
  • configure the first domain to use multisite, as suggested and as per the guide.

but at the DNS level I don't have to do anything else?

2/1/2021 3:47:16 PM
Gravatar
Total Posts 2186

Re: cross and shared database

Hey Massi,

If both domains are on the same IP Addres (server), you don't need to install anything. Just add the domain to the first website using Aruba's control panel, then create a new site using mojoPortal (Administration > Site List > Add Site), and then set the domain on the Site Mappings tab of the second site.

Step-by-step instructions are here.

Thanks,
Joe

 
2/2/2021 11:43:58 AM
Gravatar
Total Posts 147

Re: cross and shared database

yes,

but I meant on a shared host. meaning two different domains even if on the same server and therefore the same IP. with each their own web space. on the dns I should not do anything then?

2/24/2021 2:50:29 PM
Gravatar
Total Posts 147

Re: cross and shared database

so i did some tests but i didn't get the results i wanted. I have two domains with two different sites. i wish the two sites could share users and roles, including registration. ba does not structure and content of the site. in the tests that I carried out following the instructions, if I make changes to one site, I also find them on the other and vice versa. I repeat that the two sites must be done differently but I want to share only users and roles.
can you tell me precise instructions?

I installed a mojo installation on the second dminio by configuring the same database as the first site. users are shared, but also structure and content of the site. while I would like to share users only

2/25/2021 5:30:59 PM
Gravatar
Total Posts 2186

Re: cross and shared database

Hi Massi,

I think you are creating a second site in your control panel and copying the mojoportal files from the first one to the second one. You don't need to do that. 

I've created a video here that shows how to go about setting this up. 

Thanks,
Joe