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 ...Guide : How To Migrate to Amazon EC2 / RDS MS SQLGuide : How To Migrate to Amazon EC2 / RDS MS SQL
Previous
 
Next
New Post
9/25/2012 9:12 AM
 
Hello all,

I recently consolidated a number of DotNetNuke installs from physical co-located servers running various versions of Windows Server and MS SQL to a Amazon Web Services EC2 instance running Windows x64, and Amazon RDS MS SQL.

Since I'm basically brand new to Amazon's cloud offerings it took a bit to nail down a solid working process so I thought I would share. Oh and no I don't work for Amazon or anything. I'm just an independent developer.

Here is the process I used...


Migrating DotNetNuke to Amazon EC2 / RDS 


1) Spin up EC2 target Windows instance and RDS. Do your standard OS setup.

2) Set up an elastic IP and point it to your EC2 target instance.

3) Open TCP port 1433 inbound on the source database server's Firewall(s) to the public/elastic IP of your EC2 instance.

4) Remote Desktop into the EC2 / target server 

5) Download and install SQL Azure Database Migration Wizard, and install on target EC2 Windows instance (important)

http://sqlazuremw.codeplex.com/

Yes I know I said Amazon RDS, not Azure, but this tool works perfectly with RDS. It is a great point and click solution.

Since RDS does not support SQL backup file restores SQLAzureMW is the best method I've found for migrating the database.

6) Launch SQLAzureMW, enter destination MS SQL connection info, connect, select DNN database, select all objects and generate SQL scripts. 

This will take some time depending on the size and performance of your DNN database.

Click the Auto Scroll Dispay checkbox if you want to monitor the output of the job.  

You will likely see a few warnings in Red regarding Azure SQL compatibility. I'm fairly certain these can be ignored since the destination is RDS. At least I haven't run into any issues with this. YMMV.

When the scripts have been generated, hit next then select SQL Server for Server Type and enter the RDS DNS endpoint, RDS admin DB user and password. Next then Create the Target Database, make sure it it selected, hit next and execute the scripts.

7) While the SQLAzureMW is doing it's thing FTP the DNN web site root from the source to target server.

I have some pretty big DNN implementations and crazy enough some of our old servers were not happy about zipping up 200+ GB folders.

So I just let the FTP client go to town on the root directory which, while slow, always did the trick.

8) Edit the connection string info in the web.config file on the target server with the new RDS end point, user and password.

9) Add the site to IIS and configure all of your portal domain bindings.

10) Edit the /etc/hosts file on your local workstation and add an entry with the target public ip and domain name for each portal and portal alias.

Test each portal and make sure everything is running great

11) Update the domain host records for each portal and all aliases.

12) remove the entries from your /etc/hosts file

 
New Post
2/17/2013 2:39 PM
 

Thanks David,

I've followed the steps as you outlined and it worked great. I've noticed my site loads much faster now the database in on a separate RDS instance rather than running off the EC2 instance.

Thanks so much for posting your instructions.

 

 

 
New Post
4/15/2014 6:47 AM
 

Hello David,

 

thanks for the detailed article and the great hint about Azure migration wizard.  I was planning on using SQL data Compare but was worried about the larger dbs I have.

 

Can I ask  one question:  Which RDS instance did you choose?  Micro, Small, M3.Medium, M3.Large ?

 

I would be very interested to hear what you moved from and what you moved to.

 

thanks again

 

Mark from Ireland

 


Mark Breen Ireland 1987 BMW R80 g/s
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Guide : How To Migrate to Amazon EC2 / RDS MS SQLGuide : How To Migrate to Amazon EC2 / RDS MS SQL


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