Contact Us  |  Knowledge Base  |  Control Panel 
Article Details
Copy a DNN site to another DNN site

RESOLUTION

A. Follow these steps to add the (new) domain and (new) database in Plesk, only follow steps 1-10:
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/DedicatedServers/HowDoIInstallDNN/tabid/123/Default.aspx

B. Copy all the files from the c:/inetpub/vhosts/Yantotc.com into c:/inetpub/vhosts/MagroProject.com

C. Edit Web.config file for the new site. You will want to open up this file and update the database, userid, and password to your new credentials, you can use steps 24-31 here.
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/DedicatedServers/HowDoIInstallDNN/tabid/123/Default.aspx


D. Backup and Restore database:
Restore and Backup SQL Databases.

Here is how to backup your current database:
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/Hosting/ConnecttoSQLDatabasewithManagementStudio/tabid/146/Default.aspx

1. In SQL Server 2005 expand "Databases"
2. Right click on your database Tasks>"Backup..."
3. Under destination choose a destination, make sure when naming it you name it file.bak
4. Click OK.

Here is how you restore them:
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/Hosting/ConnecttoSQLDatabasewithManagementStudio/tabid/146/Default.aspx

1. In SQL Server 2005 expand "Databases"
2. Right click on your database Tasks>"Restore">"Database..."
3. Make sure the database you want to restore to is shown in the "To database" box
4. Click "From device" and choose the database to restore and hit OK.
5. Check the backup you want to restore.
6. Go to options.
7. Check "Overwrite the existing database", you will need to also change the file names for the .mdf and .ldf files here.
8. Click OK

E) Follow steps 11-12 here to add the database user. Use the user that was put in the web.config file from before.
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/DedicatedServers/HowDoIInstallDNN/tabid/123/Default.aspx

F) Follow steps 33-36
http://www.powerdnn.com/Support/FrequentlyAskedQuestions/DedicatedServers/HowDoIInstallDNN/tabid/123/Default.aspx

G) If your nameserver are changed over, your new site should now work.