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 ...Moving DNN from production to live/test serverMoving DNN from production to live/test server
Previous
 
Next
New Post
8/15/2008 5:38 PM
 

Okay, so I'm just about ready to move our DNN site out into the world. I've been looking around online for migration documentation and it seems pretty sparse. I found one on Mitch Seller's site, and another elsewhere (can't recall where). Is there any good way to quickly outline this process? Also, I would imagine it's (fairly) painless, am I right? I'm just hoping it doesn't take longer than maybe a couple of hours...

Thanks

 

PS - I've noticed mention of 'keep-alives;' can anyone suggest a reliable one?

 
New Post
8/16/2008 2:27 PM
 

Here is my little mini-tutorial. It assumes that you have control of both servers. If you don't have control of the live server, some of the steps may change slightly, but should be easy to figure out.

Moving a DNN Site using IIS and SQL Server

*If the web address will change when you move the site... for instance from localhost/dnn to www.mywebsite.com/dnn, you will need to login to the portal BEFORE performing the migration and add "www.mywebsite.com/dnn" as a portal alias in Host --> Portals

1. Copy the DNN folder to the new machine

2. Backup the SQL database to a .bak file and move it to the new machine

3. Restore the database to SQL Server on the new machine

4. In SQL Server, create a new login in the MAIN SQL security folder, and add that login to the local security folder of the database you just created. The old login may not work. In a shared hosting environment, you may be automatically assigned a login and password for your database.

5. If the web address is changing, and you didn't create a portal alias before moving the site, you can do so in the SQL database. Open the "PortalAlias" table in the database you just copied (in SQL Server). Enter 0 for the PortalID and enter the new web address in the HTTPAlias. If you are using this site on the localhost, make sure to enter localhost/VirtualDirectoryName.

6. Go into the web.config file and make sure the connection strings are correct. This is CRUCIAL. Most likely the server name is changing, and you will need to make sure the username and password are valid with the new database. Remember, there are 2 sections you will need to change... connectionString and appSettings.

7. Create a new application in IIS, pointing to the new folder (usually automatic in a shared hosting environment)

8. If some of the information looks out of place when you view the site, it may be necessary to Restart the app in the Host Settings.

Note: It may be necessary to clear your internet explorer cache if changes aren't working. If you have access to IIS, and changes aren't showing up you may have to reset the app pool or the web site itself.

Robert

 
New Post
8/18/2008 9:24 AM
 

Thanks. These seem like very clear, concise directions. I will post how it turns out.

 
New Post
8/22/2008 11:07 AM
 

everything turned out fine (took a couple hours of error messages though). apparently i didnt even have to do the migration, my boss did it. thanks.

 
New Post
7/19/2010 10:30 AM
 
Nice tutorial, but I cannot make my portal run on test environment. Until I have made some changes to PortalAlias I was connecting to production site. After I made changes to PortalAlias I cannot connect to test site. I have updated the HTTPAlias to 'localhost/virtualdirectoryname' where PortalID = 0, however I also removed other aliases for PortalID = 0. Efect - before changes I was able to access site by address 'localhost/virtualdirectoryname' but I was forwarded to production site I gues, after modification of PortalAlias table I cannot connect to test site - I get the notification: 'IE is not able to connect to site'. Anybody can help me solving problem on test env?? rypki

Regards rypki
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Moving DNN from production to live/test serverMoving DNN from production to live/test server


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