Error with multiple sites on single mojoportal & SQL install

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.
5/8/2013 11:27:02 AM
Gravatar
Total Posts 92
Keep Smiling Phill

Re: Error with multiple sites on single mojoportal & SQL install

Hosting for each of my sites here and a few more is currently on the GoDaddy servers, I have only single page sites up.

Hence this project and proposed method to consolidate them all under a single install of mp and MS SQL.

5/8/2013 12:03:20 PM
Gravatar
Total Posts 18439

Re: Error with multiple sites on single mojoportal & SQL install

Phil,

When you want to move these sites to hosting you are going to need a dedicated ip address (not a shared ip address) then you will need to point all your domain names to that ip address. It is going to be very challenging for you to then move the sites from your local machine to hosting.

My advice is don't create the sites and content on your local machine. Get one installation of mojoPortal working with a dedicated ip address in a hosted environment, point all of your domain name to that ip address and verify they work, then go ahead and create the multiple sites and content in mojoPortal right at the hosting. That will save you a whole lot of trouble and difficulty.

Hope that helps,

Joe

5/8/2013 12:12:48 PM
Gravatar
Total Posts 92
Keep Smiling Phill

Re: Error with multiple sites on single mojoportal & SQL install

WEB SITE ABANDONED....

I re-booted my machine and nothing worked at all.  All the addresses resolved to the godaddy server not my local machine.

I have gone back to making it an "Application" as I can get that to work when I enter localhost\pjs_2... I get my web site and the menus etc work.

Now to get the child sites to function.

I have gone to Administration | Site List and added the listed child sites and added their host names too.  I went to Bindings on teh Default web site and added www.yachtlogsoftware.com & www.anchorwatch.com both pointing to 127.0.0.1.  I then added both of them to the hosts file...

www.anchorwatch.com  resolves to the local machine and shows the folders under the Default Web Site

www.yachtlogsoftware.com resolves to the public site on go daddy.

Can someone explain why 1 kinds of works and the other doesn't?

-----------------------------------------------------------------------------------------------------

I guess where I am lost is www.anchorwatch.com is not an actual web site and deoesn't exists anywhere!  Except for inside www.phillipjseaman.com (PJS_2 the root) so how would the rest of the world know how to find it?  OR where to look?

The hosts file assumes an actual/physical web site and loops it back.
The Bindings seem to do almost the same thing.

What do I enter in the address bar to get to any of the child sites within MP? (i.e. localhost\pjs_2 gets me to the root www.phillipjseaman.com)

What I am hoping is that someone can show me how to enter www.anchorwatch.com and have it open the child site within MP!

I have followed all the videos and documentation and am totally confused. some because of the new versions of .NET and Windows etc and that the documentation is a version or two out. (I'd hate to be the one to keep all that documentation up to date)

Please help me
Phillip

5/8/2013 12:23:39 PM
Gravatar
Total Posts 92
Keep Smiling Phill

Re: Error with multiple sites on single mojoportal & SQL install

Hi Joe,

I was worried about transferring this project to the host but thought I'd deal with it later.  I am glad to see that you are thinking ahead of me and the issues involved then.

I have not approached Arvixe yet to see what hosting with a dedicated IP would cost.  It may be out of my current price range!  I also have another possible issue that may cause problems with building the sites.  I often go away in my RV to do my coding etc. and do not always have phone and slow or intermittant internet connection at best.  Which is why I have always liked mojoPortal as I can develop locally then upload the completed project and DB to the server when I get back home.

I thought that this would be a great solution and a slam dunk... not so huh!

hhmmmm  I will have to ponder on this new development and try to decide what the best course is.  Any suggestions on your part will be gratefully accepted.

Phillip

5/10/2013 11:08:18 AM
Gravatar
Total Posts 92
Keep Smiling Phill

Re: Error with multiple sites on single mojoportal & SQL install

Hi,

I am still having an issue with mapping of child sites.  I have watched the video and added the 127.0.0.1 lines to the hosts file.  I feel I am close but not quite there!!!!

When I type in localhost\PJS_2 I get the actual root that would be www.phillipjseaman.com

I then edit the hosts file and add all the www.domains to 127.0.0.1

127.0.0.1       localhost

127.0.0.1 www.phillipjseaman.com
127.0.0.1 www.yachtlogsoftware.com
127.0.0.1 www.anchorwatch.com
127.0.0.1 www.mousepad.org
127.0.0.1 www.anneperryartworks.com

Now when I type any of the domains listed above I get the Default Web Site's list of folders.
FYI

Default Web Site points to C:\Users\Phill\Documents\My Web Sites

My root web site PJS_2 (www.phillipjseaman.com) is a folder - Converted to an Application under the default web site

localhost\pjs_2 points to the correct folder and loads the mojoportal web site (root)

What and I missing for the "Child" sites created within mojoPortal to not work?

Once I understand this and get it working I can use it as a template system to try features and ideas in without having to do it on the live site.

Thanks
Phillip 
I created the PJS_2 folder under the Default Web Site which is in My Web Sites folder which in IIS I pointed the Default Web Site to.

5/10/2013 11:33:58 AM
Gravatar
Total Posts 18439

Re: Error with multiple sites on single mojoportal & SQL install

My advice is watch the video and read the docs again and again until you have understood the information in them. Your questions and the things you say you have done show that you have not understood it so far.

The hosts file things you have done are correct. But you have not understood what to do in IIS.

You should create a new root level IIS web site and use that, do not use the default web site, do not make a folder beneath a web site nor an application beneath a web site. It should be a root level IIS web site where the basic settings for the site point to the root folder of the mojoportal files. There should be the mojoPortal Web.config file in the root of the mojoportal files. There should not be any other web.config files in any parent folders above the mojoPortal files.

host names point to ip addresses

When multiple IIS Web sites share the same ip address then the IIS site needs bindings to have the host name so it can resolve requests to the correct site. What makes the Default web site the default is that it does not have nay host name headers in the bindings. That is why I say don't use it, as soon as you add it host name to the bindings it would no longer be the default web site.

neither host names nor ip addresses point to folders beneath an IIS web site, together they point to a Site.

5/10/2013 12:58:24 PM
Gravatar
Total Posts 92
Keep Smiling Phill

Re: Error with multiple sites on single mojoportal & SQL install

Hi Joe,

Well I got it working but I do not believe I am doing it correctly....

I left the hosts file with the pointers in it....

I created a new web site directly under the "sites" folder in IIS... I did not make it into an application... The root/localhost address worked as expected brinign up the root site of www.phillipjseaman.com...  When I tried to enter any of the other child web site names I still got an error...  I added each of the www.mydomain.com names to the "binding" and now they all work as expected.

I know I still do not understand IIS and may never understand it completely.  I hope that this setup will continue to work long enough for me to look at and test the features and functionality of mojoPortal.  Of course I can use it to test my new skins too...

I appreciate your patience but I just am not getting IIS and how it works.  Since it is working an am sorry but it might peeve you off but I am going to leave it as is so I can move forward.  Especially if I end up using Arvixe for my hosting as I assume they would take care of all that back end stuff.

What happened to the days when you learned 1 or 2 languages and could write applications that just worked anywhere? :-(

Phillip

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