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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Tried to "copy" Live site to test site (subdomain)... Tried to "copy" Live site to test site (subdomain)...
Previous
 
Next
New Post
6/20/2008 10:43 PM
 

Hi!

I'm hoping someone can offer some advice.  I'm new to DNN (just started with it in March) and am not a .net developer... and, this is my first site.  So, I'm sure there are things that I'm just not getting (and likely doing wrong).

I have two installations of DNN 4.8.1 - one on my domain mysite.com and one on a subdomain test.mysite.com.  We used the test.mysite.com to get things set up and test and what-not before putting everything into our live site (we are 4 moms that are working together to put this site up and, as we each have our own jobs, work on this at night at our own homes, so instead of working on a local installation, I created this "test" subdomain to do our initial work and testing).

To "move" everything to our live site, we (ok, I) just recreated everything on mysite.com that we had finalized in "test" in our "live". 

During our recreation, we actually made several modifications, as we refined what we wanted.  Now, what I wanted to do was to "copy" our entire live site to our test site so that I could start testing out some skin changes and other module changes (we have some purchased modules that have new versions, but I want a test area to apply the upgrades before we apply them to our live site).

I hope this all makes sense so far.

So... I found Mitchel's nice articles about backups, restores, and the one on migrating a local installation to a hosted site.  I used as the basis of what I've done.

I made a backup of the live db, asked my host providers to use that to restore to my test db, while I downloaded the entire root directory.  Then, I removed the directories for the subdomains from the backup of the files (we have two subdomains... our test and one that is company.mysite.com that I have a separate dnn installation, intended for a site for us and our contractors to use for other purposes) and a couple of other subdirectories that were already present in the wwwroot directory, that were there when we first set up the domain with the hosting provider (one called "website" and another called "cgi-bin" - these were both empty and did not map to any directory that was already in the test directory, or my local dnn installation, so they didn't seem to apply).

The db restore was successful, so I copied all the files to the test directory (minus, like I said, the "company", "test" and extraneous subdirectories).  I modified the web.config to update the db connection information to point to the test db (in both places).

Now, when I go to test.mysite.com, I see what appears to be our live site, but all links actually go to our live site. 

I'm sure that I'm either just missing a step or have made an error in judgement in thinking it would be this straight-forward.

Does anyone have any suggestions or see where I went wrong?

Thanks so much!

Paula

 
New Post
6/21/2008 9:20 AM
 

There are two things that you should have done.

  1. Edit the web.config file to point to the correct database
  2. Edit the portalalias table in your database to point to the website

 




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
6/21/2008 11:04 AM
 

Thanks for the response!

I did modify the web.config to point to the correct db (in two places... that's all I found).  And, later I found the Portal Alias table, and changed it to be test.mysite.com, but it still goes to mysite.com for all the links.  I'm thinking that there must be something else that needs to be done since it's a subdomain (or this just won't work on a subdomain...).

thanks, again.

paula

 
New Post
6/21/2008 11:16 AM
 

Just found out that since I changed the PortalAlias AFTER updating the web.config... that I still needed to upate the web.config (just make a change to it) to restart the application. 

Thanks again, Joe, for your response!  I'm all up and running now!

paula

 
New Post
6/21/2008 11:35 AM
 

PaulaO,

I can't tell you how many times that one throws people off! So every time we think of modifying the portal alias table - a natural part of that should be restarting the application so DNN knows about the change! Hopefully this thread will help other people with the issue.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Tried to "copy" Live site to test site (subdomain)... Tried to "copy" Live site to test site (subdomain)...


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