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.

This thread is closed to new posts. You must sign in to post in the forums.
2/25/2021 5:30:59 PM
Gravatar
Total Posts 2239

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

 
 
2/26/2021 11:34:14 AM
Gravatar
Total Posts 159

Re: cross and shared database

here I am,

 

I'm afraid I didn't know how to explain.

 

I explain step by step what I did. I DID NOT COPY the content from the first site to the second but I did a NEW INSTALL with the connection string of the first site. the first domain, which we will call, www.a.it already has a site that has been running for years. in a second domain that we will call www.b.it I made a NEW mojo installation using the connection string of the same database of domain A. they are two different physical domains even if they reside on the same server machine. it happens that the site on domain B shares the users but also the whole structure and content.

I don't understand if I have to do something in DNS management, and if so of which domain?

 

3/1/2021 10:48:09 AM
Gravatar
Total Posts 2239

Re: cross and shared database

Hi Massi,

You do not need a second IIS site. Everything is done with one install of mojoPortal on a single site, pointing to a single database.

Remove your second site from IIS and then do the following:

  1. Login to the existing mojoPortal site (there should be only one at this point).
  2. Go Administration > Site List and click "Create New Site"
  3. Give your new site a name and click the Save button. This will be your second site.
  4. The site will be saved and the Site Settings page will refresh.
  5. Click the "Site Mappings" tab.
  6. Enter the hostname/domain for the second site in the text box under the "Host Names" heading and click the "Add Host Name" button.
  7. In your DNS provider, make sure the IP Address for the hostname/domain you entered in the previous step is set to the same IP Address as the first site you setup.
    For Example: if your main mojo site is at "mymojosite.com" and it's IP Address is "1.2.3.4", and your second site (that you are creating with these instructions) is supposed to be at "site2.mymojosite.com" (as entered in the step above), the IP Address for "site2.mymojosite.com" needs to be "1.2.3.4".
  8. You should now be able to browse to the new site you just created.

The video I created shows all of this.

3/1/2021 12:44:47 PM
Gravatar
Total Posts 159

Re: cross and shared database

yes .. but in the case of the instructions a third level is pointed, while I need to point to another domain (www.domain.it) which in any case has the same IP as the main domain.

let me explain.

 

main domain (www.main.it) while the site to be shared by users will be (www.second.it)

3/1/2021 3:11:36 PM
Gravatar
Total Posts 2239

Re: cross and shared database

Hi Massi,

It will still work the same way with your domains:

  1. Login to the existing mojoPortal site (there should be only one at this point, www.main.it).
  2. Go Administration > Site List and click "Create New Site"
  3. Give your new site a name and click the Save button. This will be your second site.
  4. The site will be saved and the Site Settings page will refresh.
  5. Click the "Site Mappings" tab.
  6. Enter the hostname/domain for the second site (www.second.it) in the text box under the "Host Names" heading and click the "Add Host Name" button.
  7. In your DNS provider, make sure the IP Address for the hostname/domain you entered in the previous step is set to the same IP Address as the first site you setup.
    For Example: if your main mojo site is at "main.it" and it's IP Address is "1.2.3.4", and your second site (that you are creating with these instructions) is supposed to be at "second.it" (as entered in the step above), the IP Address for "second.it" needs to be "1.2.3.4".
  8. You should now be able to browse to the new site you just created.

Thanks,
Joe

3/2/2021 11:49:22 AM
Gravatar
Total Posts 159

Re: cross and shared database

Hi Joe,

I tried, but of course it doesn't work at all. both the primary and second sites reside on the same machine with the same IP. I'm talking about shared hosting (aruba) and the dns of the two sites pointing to the same IP because it is the same machine.

I followed your instructions to the letter but it can't work. it is a shared hosting.

therefore on that server it is possible that there are as many as 200 domains. in fact all my sites are on that machine. if I enter the host name of the second domain, however, by going to the second site he will never be able to point to the first ... even if the DNS points to the same IP.

don't work  don't work

3/2/2021 12:15:02 PM
Gravatar
Total Posts 159

Re: cross and shared database

otherwise I don't know .. if there is a way to configure the dns differently .. but they point to the same IP. CName record? SVR?

3/8/2021 10:05:10 AM
Gravatar
Total Posts 2239

Re: cross and shared database

Hi Massi,

I'm just logging our direct email conversation here for others.

The problem with your setup is your host doesn't allow you to attach more than one domain to a website. That being the case, you can't use the multi-sites feature of mojoPortal.

Thanks,
Joe

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