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 ...Mirroring a child siteMirroring a child site
Previous
 
Next
New Post
2/15/2008 9:10 PM
 

Hello Folks,

I have a child site hosted on DNN. I want to create an exact mirror site of that for development purpose. How do I go about doing it? I tried to create another child site but I don't know if it's possible to autimatically migrate over the data from one child site to another.

And when I am done developing on the mirror site, how do I deploy it back to the original site?

I am a newbie to DNN so pardon me if this is something really primitive.

Ciao

Bar.

 
New Post
2/16/2008 5:26 AM
 

The old ways of developing code and content elsewhere and then transferring to a live site don't really work with a modern CMS, which by its very nature is intended to be permanently live and in use.

You can't move a single portal, but if you own the entire DNN instance and have access to the database, you can just duplicate the whole portal and do your testing on that. And don't attempt to migrate the dev site to the live site when you're finished. Instead, you just transfer your changes to the live site. For example, if you were testing a module and found it to be good, you'd then be safe to install it on your live site.

You need to have a host that lets you carry out these procedures easily and quickly. I can have a duplicate portal running in a few minutes and that's what you should also be after.

Rob

 
New Post
2/17/2008 2:02 AM
 

Thanks you for your reply Robax,

I think I do own the DNN instance but I am not sure how should I go about duplicating he whole portal. Is that something that I can do from the admin UI of DNN? From your email, duplicating a portal seems a really simple process. I would really appreciate if you point me to how I can do it.

Thanks

 

 
New Post
2/17/2008 11:30 PM
 

Hello again,

In order to duplicate your instance, you would need to either have direct access to the server, or a hosting control panel that lets you carry out the steps required. If you installed and set this up yourself then you'll already know much about what you need to do, but this is it in brief:

  • Set up a new domain on your server, point it to a folder. Make sure it's in an ASP.Net 2 application pool. If you don't have spare domains, then you could probably set up a subdomain and use that.
  • Switch the domain off in IIS so it's not running.
  • Add the new domain as an additional alias in your DNN portal's site settings.
  • Zip up your DNN portal - then unzip it to the new folder - or use copy and paste if you have the right access.
  • Create a new blank database, then back up your original DNN db and restore it to your new blank db.
  • Change the db server details in the web.config in your new folder to match the new db - usually just the name of the db.
  • Appl permissions: Give the Network_Service user full control over the new folder and all subfolders (right click the folder in windows explorer and apply permissions there or use your hosting control panel)
  • Switch the new domain on and load the site via the new alias that you entered.

From then on all you need to do to repeat it is just duplicate the file system, and then backup and restore the db. Then apply permissions adn make the small web.config edit and away you go. It really only takes a few minutes if you have full access to the server. I used to be able to do it via my hosting panel, but I'm also aware that some panels don't provide all the required functionality. Now I have remote desktop and so it's no trouble at all.

You can change the sequence of these things if you're unable to switch the domain on and off at will. The main thing you want to avoid is that both sites are trying to access the same database.. so the new site should not be able to start until you've changed the web.config.

Hope that makes sense.. your first step will be to see if you have access to the server desktop or all the required tools in your hosting panel.

Rob

 
New Post
2/25/2008 10:11 PM
 

Hello Rob,

Thanks you very much for your help so far. I restored the database and files to our staging server. I modified web.config to point to this new database.

Now when I browsed to the newly setup site on this staging server for the fist time, it printed a message that basically said "Nothing to install". Now from then on whenever I brose to the staging server site, it basically opens/redirects my request to the released site on the internet instead of showing me the local copy of the site. I guess I missed some step above. I did not completely understand the part of seting up domain and probably that's why it is redirecting to the released site on the web.

Do you think I messed up the setting up domain part? Is there anything else that could be wrong?

Thanks!

Bar.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Mirroring a child siteMirroring a child site


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