Newby: where to install mojoPortal on development machine?

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.
1/29/2012 10:01:41 AM
Gravatar
Total Posts 9

Newby: where to install mojoPortal on development machine?

Running Windows 7 Pro version 6.1 build 7601 SP 1; IIS version 7.5.7600.16385; mojoPortal 2.3.7.6 MSSQL; SQL Server 2008

I have an existing web structure at C:\inetpub\wwwroot with many folders, many set up as applications in IIS, from my 17 years of web  development using other systems.

I can't find anything (yet) in Documentation about installing on local machine, but lots about on hosting server. When you say to copy the wwwroot folder contents of the download to the root folder of your web site what does that mean locally? Is the root folder of my web site the C:\inetpub\wwwroot folder which is where Sites\Default Web Site points to in IIS, or should I create a new folder such as C:\mojoroot\wwwroot and copy into that one? 

1/29/2012 10:28:46 AM
Gravatar
Total Posts 18439

Re: Newby: where to install mojoPortal on development machine?

Hi,

You can install it either as a root level site or in a sub folder below a root level site as an application. In either case the folder can exist anywhere on disk. If you want to install it as an app below localhost using your default web site, create a folder somewhere named mojoportal or whatever you like. Copy the "contents" of the mojoportal wwwroot folder in our package into that folder. Right click your default web site and choose add application, browse to the folder, configure your app pool etc. If you have another .NET app running in the root of the default web site you may get web.config conflicts but these can be resolved as indicated in the first item of our developer faq. Then it will be under localhost/whateveryounamedtheapp

However if you're planning to populate content into the site and later move it to hosting as a root level web site then you should probably install it locally as a root level web site because of issues mentioned in Moving an Installation of mojoPortal to a different server. If you already have stuff running in the default web site just create another site and use a host name. 

See also:

Hope that helps,

Joe

1/29/2012 11:12:14 AM
Gravatar
Total Posts 9

Re: Newby: where to install mojoPortal on development machine?

Thanks, Joe.

If I were to install mojoPortal in C:\inetpub\wwwroot and I already have a number of sites/folders there will that existing content interfere in any way with the functioning of mojoPortal?

At this time I do not have an application running in that root nor do I on my Arvixe server; all applications are folders under that root.

1/29/2012 11:18:58 AM
Gravatar
Total Posts 18439

Re: Newby: where to install mojoPortal on development machine?

If you install mojoPortal in the root of default web site and you have other .NET apps running in folders beneath it then there will still be issues caused by web.config inheritance, ie the mojoPortal Web.config might cause problems in those other apps, though it could be mitigated as mentioned in the first item in our developer faq.

I think the easiest thing for you local environment is to create a new web site instead of using default web site, and add an entry in your hosts file as discussed in the article Manual Installation Recipe for IIS 7.x and .NET 4.

ie you would add this in your hosts file:

127.0.0.1 mojoportal

then use mojoportal as the host name in the new IIS web site, then you would access the site using http://mojoportal instead of http://localhost

Hope that helps,

Joe

1/29/2012 1:53:04 PM
Gravatar
Total Posts 9

Re: Newby: where to install mojoPortal on development machine?

Would the second (and other) site(s) then be accessed using http://mojoPortal/sitename etc?

1/29/2012 1:58:16 PM
Gravatar
Total Posts 18439

Re: Newby: where to install mojoPortal on development machine?

If you mean the other apps you have running under the default web site in folders, no, those would still be under localhost since they are under the default web site not the newly created one.

1/29/2012 2:23:12 PM
Gravatar
Total Posts 9

Re: Newby: where to install mojoPortal on development machine?

No, I was referring to the sites under mojoPortal. I would assume I would continue to run the old sites under http://localhost/sitename.

I know I can run default.aspx View in browser (I am using Microsoft Visual Web Developer 2010) to get the main site to run, and can get into admin to set up the other sites. But then how do I get them to run so I can see the results and use their admin areas?

Dave

1/29/2012 3:20:19 PM
Gravatar
Total Posts 2253

Re: Newby: where to install mojoPortal on development machine?

Hi Dave,

Please see the "Hosting Multiple Sites on One Installation" documentation. It sounds like you want to create a single mojoPortal site in IIS and then set it up to use Folder Based Multiple Sites.

HTH,
Joe

1/29/2012 4:24:05 PM
Gravatar
Total Posts 9

Re: Newby: where to install mojoPortal on development machine?

Joe:

I have gone over the documentation again and again, and at this point I am totally confused! I honestly am not trying to force one thing or another, but am just trying to figure out how I can install and use mojoPortal! I would be using it to develop a number of sites most of which will be independent of each other (thus seeming to need multiple sites based on host names) and some will be subsites (and thus seeming to need multiple sites based on folders).

So, all I am asking what is the best way for me to start off cleanly using mojoPortal to create, run, and maintain a group of sites? And then, how do I browse the resulting pages? I know my latest previous question seemed to assume a folder structure, but that is just me trying to understand the documentation. There is lots and lots of directions there but nowhere can I find where it says what you actually type into the address bar of my local browser to run the local site I am developing.

I have a trial setup and have created the top site and a second site. But I can't figure out how to browse the second site because everything I have done brings up the first site under the second site's name.

I am sorry for my denseness!

Dave

1/29/2012 4:45:18 PM
Gravatar
Total Posts 18439

Re: Newby: where to install mojoPortal on development machine?

Hi Dave,

A single installation of mojoPortal can do either multiple sites based on host names or multiple sites based on folder names, it cannot do both. You would need two installations one for folder sites and one for host name based sites.

For folder based sites the first site must be a root level site it cannot run as a subfloder beneath an IIS web site so you would first get it working at http://mojoportal/ ot http://whateverhostnameyouchoose/ using previosu instructions I've given you

and even for host name based sites it doesn't make sense to use subfolders so host name based mutliple sites needs to be first installed as a root level IIS web site., again with instructions I've given you you would first get it working at http://mojoportal/ or really at http://whateveryouwant/

Then if you are going with host name based sites you need to add additional host names to your hosts file for each one, ie

site1 127.0.0.1

site2 127.0.0.1

whateveryouwant 127.0.0.1

and also add those host names in the new IIS web site as host names otherwise IIS will resolve any host names not specifically assigned to a site will resolve to the default web site which has no host names

so after you create the site depending on which approach is configure you will see in site settings either a tab for assigning host names to a site in mojoPortal or assigning folder names, you enter the host name or folder name there.

if using host names then you access the sites using http://site1/ or http://site2/ ie whatever host names you used.

if using folder sites you access the sites with

http://mojoportal/foldername/Default.aspx

or

http://whateverhostnameyouused/foldername/Default.aspx

Hope that helps,

Joe

1/29/2012 6:33:38 PM
Gravatar
Total Posts 9

Re: Newby: where to install mojoPortal on development machine?

Joe:

That helped a lot. Thanks! Now I understand I need to pick one or the other and go with that. I would use host names, I think. But now the question arises as to how I can edit the hosts file on the production server at Arvixe. Hmm. I'll have to check with them, I guess.

I noticed in your notes about the hosts file you put the name first followed by the 127.0.0.1 but in the file on my computer it is the reverse. Does it make a difference?

Dave

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