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 ...Migration - Moving DNN from devlopment server to UAT serverMigration - Moving DNN from devlopment server to UAT server
Previous
 
Next
New Post
5/17/2007 5:02 PM
 

Hi All,

I'm trying to move a DNN installation I have done on my local machine in my work environment to a UAT server for testing which is located on another domain independent of where I work and from there I want to move the DNN installation (once it has passed the client user testing to the Production server with the same environment as the UAT server.

I have been successful in migrating the installation but have run into a few peculiar problems:

1.        I cannot log in to DNN

2.        The links on the landing page work fine but as I move through the pages the links reference the old server address. (i.e. if I click on the 'About us' link instead of going to the 'About us' page on the current server the link shows the URL of the old server.

My steps in migrating DNN: (brief form)

1.        Took a full back up of the database from my development machine and moved the backup to the UAT server.

2.        Took a copy of the DNN website folder and moved it to the UAT server.

3.        I set up the website folder in the UAT server by adding the correct permission properties. (i.e. adding ASPNET and NETWORK SERVICE accounts).

4.        I modified the config file to point to the database that I will soon be creating for DNN.

5.        I set up IIS.

6.        I created a database in the SQL database server and restored the backup of my database on my working machine to this newly created database.

7.        I opened the PortalAlias table and modified the HTTPAlias attribute to the newly created address in IIS.

My site now loads up on the UAT server and looks good. :)

As I browse through the pages I encounter the problems I have mentioned above. Logging in and old URL references.

I have to do this process again and migrate DNN to the production server once UAT has been approved? (This is the current setup and I am not allowed to work directly on the UAT server)

Can anyone help me out here?

Any help would be most appreciated.

Regards

Johann

 
New Post
5/17/2007 6:46 PM
 

When moving a web site to another server, make sure, you keep both encryption keys in your web.config file.

about your links check, if they are stored relative or absolute. If they are stored absolute, you will need to modify them manual.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/17/2007 7:02 PM
 

YES! Thank you!

I can log in and the links work correctly.

I guess the step I missed out was ensuring that the encryption keys remained the same.

My site works fine now.

Thank you.

 
New Post
5/17/2007 7:04 PM
 

great to hear!


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/14/2008 1:56 AM
 

For the benefit of everyone using DNN, below are some easy to follow steps when migrating your webportal.

This has been tried and tested with versions 4.6.4 (If i remember correctly). 

Migrating DNN Web portal files:
1.       Depending on how you have set up DNN in your development environment, you need to copy the main folder and move this from your development environment to your production environment. (If you did not set up DNN you can work out which folder you need by opening IIS and seeing as to what folder has been set as the home directory).
2.       Copy the folder into the directory of your current installation. (This will overwrite your existing web portal files so be sure to backup the original installation files before hand). If there is no existing DNN installation, set the DNN portal up by copying the folder into the C:\Inetpub\wwwroot folder if it has not already been done so. (You may also just copy it to your Inetpub folder).
3.       Modify the webconfig file in the DNN folder to contain the correct SQL user account information that will access the database that you have just restored.
4.       You need to give the DNN folder the correct permissions in order for it to function. You need to ensure that the folder (and child folders) has the ASPNET and NETWORK SERVICE accounts associated with them.

 Migrating DNN Web portal files and Database:

1.       Make a full back up of the database that you want to migrate from the development environment and copy or move it to a location in the production server.
2.       Depending on how you have set up DNN in your environment, you need to copy the main folder and move this from your development environment to your production environment. (If you did not set up DNN you can work out which folder you need by opening IIS and seeing as to what folder has been set as the home directory).
3.       Now we have the database and the correct DNN folder on the production server. Setup the DotNetNuke database if you have not already done so and restore the database from the backup so you have a database ready for use by DNN. You will need to create a user account for the database for DNN to use in order to write and read information to it. (Ensure that the account has the appropriate permissions)
4.       If you have an existing DNN installation, copy the folder into the directory of your current installation. (This will overwrite your existing website files so be sure to backup the original installation files before hand). If there is no existing DNN installation, set the DNN portal website up by copying the folder into the C:\Inetpub\wwwroot folder if it has not already been done so. (You may also just copy it to your Inetpub folder).
5.       Modify the webconfig file in the DNN folder to contain the correct SQL user account information that will access the database that you have just restored.
6.       You need to give the DNN folder the correct permissions in order for it to function. You need to ensure that the folder (and child folders) has the ASPNET and NETWORK SERVICE accounts associated with them.
7.       The last step you need to do is, modify the HTTPAlias as the HTTPAlias in the database contains the one of the development environment. Change this to your new alias. i.e. from dotnetnukedev.augen to augen.com

 

Points to note:

Ideally when making changes to the portal in terms of layout customisation or functionality you would only ever need to copy those modified files and the dll in the bin folder over. I find it safer to copy the whole folder so as to not cause any complications for example inadvertently copying a file to the wrong folder. It is imperative that you add the ASPNET and NETWORK SERVICE accounts to the folder and its child folders so that DNN is permitted to run.
You would not really need to move the database from development to the production environment, however if you do please ensure that you are not going to overwrite a database that is in use and contains live and up to date information. In this case you may have to take the production website offline so the database cannot be further modified, and copy this database and restore it to the development environment where you can make you changes before copying it back to the production server and restoring it.
Trouble shooting:
1. The website does not load up? Have you set the permissions on the DNN folder that you have migrated (ASPNET and NETWORK SERVICE)? Have you created an SQL server user account that DNN can use?

2. Does you web portal load up without any problems but you just don’t seem to be able to login? This is because the machine key in your web config while is different from what has been registered in the database. This only occurs if two separate instance of DNN were set up, one on the development environment and one in the production environment. This in turn generates different machine keys and is linked to a specific database and will make you migration a little tricky. If you have migrated and restored the development database to the production environment ensure that you overwrite the existing DNN web portal files with the files from the development environment and make the necessary changes.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Migration - Moving DNN from devlopment server to UAT serverMigration - Moving DNN from devlopment server to UAT 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