Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Making Parent Portals on localhostMaking Parent Portals on localhost
Previous
 
Next
New Post
3/30/2007 3:38 PM
 

Okay, now that I've found out that I can have multiple parent portals in one DotNetNuke installation, and I have experimented with parent portal creation with success . . . thanks to the expert insights shared in this forum.

All these work on the server with a registered domain name. Now my question is:

Can I build parent portals in localhost . . . that is, on my development PC?

Right now, the URL for the local DotNetNuke is "http://localhost/dotnetnuke". I had tried creating a new parent portal, and named it "http://localhost/newportal". It did not work--I get a "Server Application Unavailable" screen when I tried to browse to the newly created site. How do I do it correctly? Or can I create parent portals on localhost at all?

Thanks in advance!

jc

 

 
New Post
3/31/2007 4:22 PM
 
 

I faced the same situation (I needed to "Duplicate" my server environment on my local machine).  On your LOCAL machine you will need to create "child" directories within the dnn root folder to "convert" the "parent" portals to "child" portals (this is in effect how DNN differenciates between Parent (URL) and Child (directory) portals.  Make sure you include the proper files in the directories of the child (Default.aspx).  Finally I modified the "PortalAlias" file in the SQL Database and changed the www.url.com to localhost/child1 .   I had 4 parent and 2 child portals on the server and "convert" them to all "child" portals for testing on my local machine.

Hope this help.

 
New Post
4/2/2007 11:19 AM
 

Hummm . . . I've tried it this morning (emulating a parent portal on the localhost by creating a child portal as you suggested), but it has not work. May be I missed something or misunderstood something . . .

Here's what I did:
* I created a child portal, xyz, as usual (localhost/VD/xyz) (VD is a virtual directory I had set up for DotNetNuke)
* I made another alias for the new child portal (localhost/web/xyz) (web is another virtual directory I had set up also . . . why? Just because I want to experiment around.)
* Acertained that localhost/web/xyz pointed to the right site.
* I copied the Default.aspx file from the new folder that was created in the DNN root when the child portal was created
* I went into the DB, in the dbo.PortalAlias table, and changed the alias (from localhost/web/xyz to localhost/xyz)
* Clicked on localhost/xyz and I got the page with the error "Server Application Unavailable"

I must have done something wrong . . . and yes, in my case, I am trying to convert a child portal into a parent portal before I dump the files of the parent portal on the server into my new child portal.

Thanks again for sharing your insights!
jc

 

 
New Post
4/2/2007 11:58 AM
 

" * I went into the DB, in the dbo.PortalAlias table, and changed the alias (from localhost/web/xyz to localhost/xyz) "

Why did you change this??  On my local machine I used the SAME (VD) as created on my server..Try it again as (localhost/VD/xyz)..Make sure the VD is setup as an "application" in IIS...Are you using II6 / XP ...OR... II7 / Vista ?  What version of DNN ?

 

 

 
New Post
4/2/2007 1:56 PM
 

Jennc:

I am not going to try to diagnose the recommendations below but instead I will tell you how I do it.  And I have been doing this since DNN version 1.0.x. and it has worked great for me.  As you know, IIS in Win2K and XP only allows you to have one true Web Site, the Default Site.  My method works within the confines of this limitation and taking advantage of DNN's ability to host many sites with one software installation and one Web Site in IIS 5 or 5.1.

First make sure that your installation works properly for Host.  For my method to work you have to go to the IIS manager and change the Home Directory for the Default Site.  Specify the physical directory where you installed DNN.  In my case it is c:\inetpub\dnn441.  After doing this run the IISReset command.  By doing this you will be able to run your site locally by just specifying "localhost" as the URL (yes, no weird virtual directories).  Test this please.

Now you are ready to login to your local site as Host and create more Parent Portals.  The trick now is to be careful with the naming of the Portal Alias.  Let's say you create a new portal and use the alias "testportal1.com".  Then, go to the IIS Manager and edit the properties for the Default Site, in the "Web Site" tab, click on the Advanced button, then add testportal1.com as a Host Header for the site.

Then, (follow me here) open the file “C:\WINDOWS\system32\drivers\etc\hosts”.  This file has no extension but it is a text file.  Under the line that reads “127.0.0.1 localhost” create a new line that reads “127.0.0.1   testportal1.com”, make sure that when you save it the file remains without extension.

Run IISReset one more time just in case, I have seen things not work properly right away but they work just fine after rebooting IIS.


You should now be able to run your browser and enter “testportal1.com” and connect to your new Parent Portal.

See how this works and post any questions you may have.  You can repeat the process for every new Parent Portal you wish to have.  All of them should work fine side by side by just specifying the portal specific URL (alias/domain) for each, just like on a server

Carlos


 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Making Parent Portals on localhostMaking Parent Portals on localhost


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out