Where to get started with multiple sites?

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/15/2012 11:06:33 AM
Gravatar
Total Posts 104

Where to get started with multiple sites?

So, I have a "Site List" that lists the main site, as well as a secondary site (SiteID = 2) that I now want to style and add content to... where does one even get started with this process?  I only have links for "Site Settings" and "Permissions".  When creating new content, I see no controls that allows me to associate content with a specific site.  How do I even access this second site?

2/15/2012 11:15:43 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

All of the files for the second site will be located under /Data/sites/2, so for instance the second site's skins will be under /Data/sites/2/skins. To learn about how to access your two sites by host name or folder name, take a look at the Hosting Multiple Sites on One Installation document.

Jamie

2/15/2012 11:19:53 AM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Thanks for your quick response - I did review that information, but I don't recall seeing any details about how to associate content to one site or another, or what URL one might use to try to access the site (without setting up host headers yet).  So, if one has more than one web site, then everything must be edited manually without using the interface?

2/15/2012 12:14:56 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

this would seem to be basic information that should be covered somewhere...

1) How to create content and associate it to a child site

2) How to access (via URL) the child site

2/15/2012 12:30:42 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Hi,

1) How to create content and associate it to a child site

You create content on a child site by browsing to it and creating the content, just like the main site.

2) How to access (via URL) the child site

You must add a Hostname Mapping to the child site. The hostname mapping must be a domain that is setup on the website in some fashion, either the website is assigned a dedicated IP address or is using host headers. Either way, the domain must be setup in DNS to point to an IP address for the web server.

HTH,
Joe D.

2/15/2012 12:35:16 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Thanks for the reply Joe, but just to clarify then, I can't do anything with my child site until after I somehow figure out this mapping thing?

2/15/2012 12:37:38 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

That's correct. If you can't map a hostname to it, you can't view or manage content for it.

Is this on a local machine or hosted on a server?

I might be able to help you get the hostname mapping setup but I'll need more information to do so.

Thanks,
Joe D.

2/15/2012 12:42:08 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok - thanks for clarifying that for me... I am logging into a server via Remote Desktop Connection and have all admin rights...

Windows Web Server 2008 R2 SP1

IIS7

2/15/2012 12:47:25 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

right now, I can access the main site using a URL of http://<IP ADDRESS>:8080/mojoportal/

2/15/2012 12:47:50 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Okay, so where do you manage your DNS? Wherever that is, create your domain or sub-domain and point its "A" record to the same IP address your main domain "A" record points to.

At this point, open IIS, select the website in question and click the "Bindings" link in the Actions pane. Click the Add button, and enter the domain.

Now, go to the Site Settings for the child site and click the "Host Name Mappings" tab and enter the domain there.

HTH,
Joe D. 

2/15/2012 12:48:49 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

in "Host Name Mapping" for the child site, I have "test" for now...

2/15/2012 12:50:57 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

thanks for the information, I appreciate your trying to help... this is all on internal networks right now, so I have no idea as far as DNS settings go...

2/15/2012 12:52:22 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

you can't just do something like http://test:8080/  ?

2/15/2012 1:08:31 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

So apparently one must also be a server administrator or have that experience to be able to use this CMS product...?  I've now installed DNS and am at the "New Zone Wizard"... I have absolutely no idea what to put here and I can't believe that one must go through all of this just to use this CMS...

2/15/2012 1:26:05 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok, so, even though I have admin access to an internal server that is currently dedicated to providing a place to test various CMS systems for possible use, since I am not a systems admin, nor do I have information on all of the zones, FQDN's , etc., I can't even begin to use mojoPortal as a viable CMS?

2/15/2012 1:32:11 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

I guess we'll have to try the folder based approach then...

2/15/2012 1:34:59 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Hi,

You do not need to be a Server Administrator to use mojoPortal. You have not read all of the documentation pertaining to the Multiple Sites feature and you are making assumptions that are taking you down the wrong path.

Considering you're working with the server as a local machine and you don't have a DNS server to setup domains, you can use your localhost file.

There is, in fact, a video on how to do what you are trying to do. You can find that video on the "Host Multiple Sites in a Single Installation of mojoPortal Based on Host Names" article.

Before you watch that video, you should note that since you are running your site in a virtual directory, your final urls will always include the /mojoPortal. There is some very good documentation on how to avoid using a virtual directory on your local machine. That documentation is "Adding a Host Name to the hosts file for local testing." Also be aware that folder-based multiple sites will not work with virtual directories, as noted in this documentation.

HTH,
Joe D.

2/15/2012 1:47:44 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

thanks again for the information... so even if one were to want to run with a folder based approach, the whole thing would have to be installed at the root level?

2/15/2012 1:55:19 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Yes, if one were to need to use folder based multiple sites, mojoPortal must be installed in the root of it's own IIS website.

Using the documentation I referenced, you should have no problem setting up a new website in IIS that will run your mojoPortal installation.

HTH,
Joe D.

2/15/2012 2:20:14 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

I'm just getting very frustrated with this process and I haven't gotten to the point of trying to use it and style it yet... I just want to be able to set up the CMS and be able to administer 2 or more separate web content areas...

2/15/2012 2:30:33 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Hi,

What part(s) of the process are you having trouble with? Have you added a test domain to your hosts file? Have you setup mojoPortal in its own IIS website? Have you added the binding for the test domain to the IIS site?

I'll help you as much as possible but please be sure you are reading all of the documentation I send you to, don't just skim over it and then think that mojo is the problem.

Thanks,
Joe D.

2/15/2012 2:35:31 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

well I appreciate your assistance... right now, I'm stuck at just trying to do something with the HOSTS file... 

I can access the main site that is running on the server, using the servers IP address like:

http://<IP ADDRESS>:8080/mojoportal/

 

so, after I remote into the server and access the HOSTS file, I have no idea what to add since it is on a server and not on the same machine I am working from

2/15/2012 2:37:52 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

the only thing in there now is an entry for sqldev

<IP ADDRESS> sqldev

2/15/2012 2:40:44 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

do I have to add something to my local machine as well before I can try to access www.cheesburger.com?

2/15/2012 2:54:50 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

You would modify the hosts file on your local pc. You would put something like:

1.2.3.4 mymojoportaldevsite.com

in the hosts file on your pc.

You would then add mymojoportaldevsite.com to the bindings for the IIS website on the server.

Again, I suggest that you do not run mojoPortal in a Virtual Directory if you are wanting to use the multiple sites feature.

HTH,
Joe D.

2/15/2012 3:13:18 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

the main issue with that would be in trying to separate out different CMS systems for evaluation... I wanted to be able to keep them cleanly separated, so it could be moved or redeployed somewhere else...

so in my case, on my local machine, I would need something like

<SERVER IP ADDRESS>:8080 www.cheesburger.com

to get to the second site, after adding bindings in IIS7?

and then how would I get to the main site?

thanks again for your help with this

2/15/2012 4:00:25 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

Using Virtual Directories doesn't allow you to keep anything separate, the reverse is actually true.

You can't put port numbers in your hosts file. That's not what it is for.

If you create a website in IIS, and add the binding as I have suggested, you will end up with a website that is totally separate from others on your server.

  1. Create a folder somewhere on your server
  2. Create a new Web Site in IIS and name it mojoportal
    Set the "Physical Path" to the path of the folder from step 1.
    Set the "IP Address" to "All Unassigned" and the "Port" to "80".
    Set the "Host name" to "www.cheeseburger.com" (without quotes)
    Click OK
  3. Click the "Application Pools" item on the left side of IIS Mgr.
  4. Click the "mojoportal" application pool and then click the "Advanced Settings" link in the "Actions" pane.
  5. Set the ".NET Framework Version" to "v4.0," make sure the "Identity" is set to "ApplicationPoolIdentity" and click OK
  6. In Windows Explorer, move the files from your current mojoPortal installation to the folder you created in step 1. Put the files directly inside of the folder, not inside of another folder. In other words, if the path to your folder is c:\mojoPortalDev, all of the files from the release would be found inside of that folder. So, you should be able to go to c:\mojoPortalDev\bin and see a bunch of dlls files.
  7. Right click the folder from step 1 and choose properties, on the security tab click Edit..., then click Add..., now type "IIS AppPool\mojoportal" (without quotes) and click OK, click OK, click OK
  8. Repeat step 7 on the /App_Data and /Data folders but this time, the "mojoportal" user will already be there and you just need to change the permissions on these folders to "Modify" for the user.

The use of a hostname on the site will allow you to create multiple IIS websites, using the same port and IP address, on one server.

Now, add this to the hosts file on your local pc:

<SERVER IP ADDRESS> www.cheeseburger.com

I've been using IIS for over 16 years (since version 1). I can guarantee you that the above steps will work (not withstanding firewall settings). There is nothing in this configuration that is unique to mojoPortal. This is how one would create a standard website in IIS. The only thing that is not what you would do for a public website is the use of the hosts file. But, since you do not have access to a DNS server and a true domain name, we have to use it.

HTH,
Joe D.

2/15/2012 4:11:51 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Thanks again for your information - I'll review all of this and walk back through it -

I have a new web site set up in IIS7, called it mojoportal, the main difference being that I gave it a port number of 8080, so I should be able to just change that to 80 and add the binding in IIS7 for the test host name of www.cheeseburger.com... so perhaps the install I am working with is not really in a virtual directory...

 

2/15/2012 4:16:24 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

The reason I thought you were working out of a virtual directory is you posted this:

right now, I can access the main site using a URL of http://<IP ADDRESS>:8080/mojoportal/

That trailing /mojoportal/ means the site is running in a virtual directory.

Thanks,
Joe D. 

2/15/2012 5:19:13 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok - got ya - thanks again for the assistance - I'll continue working on it Laughing

2/15/2012 7:21:04 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

Hey Joe, thanks for jumping in here. I really liked your step-by-step setup instructions. Maybe that should be in its own "quick start" document for IIS users!

2/15/2012 9:06:00 PM
Gravatar
Total Posts 2239

Re: Where to get started with multiple sites?

What I wrote was an abridged, updated version of what is on the "Manual Installation Recipe for IIS 7.x and .NET 4."

I'll go through that doc and update it tomorrow.

Thanks,
Joe D. 

2/16/2012 11:59:59 AM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

could I still run this using an alternate port number?

2/16/2012 12:23:20 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

Yes, you can assign whatever port number you want to the mojoPortal web site in IIS, and then you could run two different CMSs (or separate installations of mojoPortal) with the same host name on different ports. But you'll still need either an alternate host name or folder names to distinguish between two sites running in the same mojoPortal installation.

2/16/2012 1:22:15 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok thanks again :)

2/16/2012 3:51:19 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Well, it looks like I cant set up another site using port 80... it gives me a warning saying something like only one or the other can be running at a time... I then deleted the default site that was there and tried to start this new web site, but then I get an error saying "The Web site cannot be started.  Another Web site may be using the same port."

 

2/16/2012 3:52:45 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

Ah - nevermind - looks like I still had that binding on the other site...

2/16/2012 4:00:46 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

wow - finally I can access the "second site"!  (http://www.cheeseburger.com/)

now, what changes would I need to make to access the main site again? lol

2/16/2012 4:03:21 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ah - I got it here... I just added another binding on the server for this new site with a different port number and no host name...

2/16/2012 4:32:41 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

It sounds like you're getting close, but again you don't need to use a separate port. For the other binding, use the same port but put in a host name like www.mysite.com (or whatever you want to use for the first site). Then, in mojoPortal, you go to Administration, Site List, Click on the Site Settings link for the site you're setting up, then click the Host Name Mapping tab. For site 1, put in www.mysite.com. For site 2, put in www.cheeseburger.com.

In your local hosts file, you should have entries for both www.mysite.com and www.cheeseburger.com, both pointing to the IP address of your web server.

As an alternative, in IIS you could also just use a single binding with no host name listed. That would make ALL incoming http connections on that port go to mojoPortal, even if you connect by IP address.

Jamie

2/16/2012 4:57:25 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

ok - thanks again for the help! :D

2/16/2012 6:21:22 PM
Gravatar
Total Posts 104

Re: Where to get started with multiple sites?

could you suggest a forum for styling now please?

I see the actual instructions end with:

"Step 1 Creating Your Design in Artisteer 3.0

Choose Website or Blog as the project type."

after this line, I don't see any clear instructions. 

2/16/2012 7:17:16 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Where to get started with multiple sites?

Hi, if you want to use Artisteer to design a custom skin, then visit the How to Easily Create a mojoPortal Skin with Artisteer document. If you have questions about the process or need some help, we'll try to provide support in the Help With Design and Skins forum here.

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