You need to Register for free and Login to post a message in the forum.

Forum

CLone a DNN instance
Last Post 2006-11-02 10:35 AM by Lee Sykes. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Chris ReddickUser is Offline
Nuke Newbie
Nuke Newbie
Posts:5

--
2006-10-21 07:20 AM  
I'm trying to clone an instance of DNN for use on a virtual dedicated server.

I have complete access to all of the files, but I find that when I do a simple copy of the folder containing the DNN installation, the copied DNN instance will not run.

My guess is that there are references to the old DNN instance that are keeping me from simply making a copy and then running that copy (things like a web.config reference or Database.mdf reference, etc.). Unfortunately I don't understand the code well enough yet to be able to hunt down exactly what is going on...so I thought I'd ask. Suggestions, Ideas, or insights into how to Clone a DNN instance would be very helpful!

Thanks in advance,
Chris
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-10-23 09:14 AM  
Hi Chris,

This is the method I use to clone a live website and place it on my laptop to run test modules / skins etc. You should be able to adapt this to suit your needs.

Log in to your live website - Go to Admin / Site Settings
Portal Aliases
Add New HTTP Alias
add the address that you wish to use for your locahost installation version:
 ie. localhost/dnncreative

(NOTE: do not add the http://)

Copy all of the DNN installation files from the live website to a new folder on my laptop
Make a backup of the SQL database - will have file extension .bak - copy to laptop (I place this in the backup folder in the SQL server programme files)
On the laptop go to IIS (Internet Information Services)
Create a new website and point the website to the folder on the laptop for the DNN installation files (The name of the website should be the same as the name you specified in the portal Aliases ie. dnncreative) (http://localhost/dnncreative)

Create a blank database in SQL server on the laptop and name it exactly the same as the live database. Also create the same user and password to access the database as the live site.

Go here:

http://www.sqlservercentral.com/col...estore.asp

(You need to register and login to read the tutorial)

Run the commands that are listed in the files in the SQL Query Analyzer which create the SQL procedures in the master database.

Then run the restore command such as:

            EXEC sp_ABRestoreDb 'dbDNNcreative', 'E:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\09-28-06-DNNcreative' 

To restore the file that you have backed up to the database you have already created in SQL Server.

After this, then need to run this to allow users to login to the database:

EXEC sp_abFixUserLogins



Go to the web.config of the DNN installation files on your laptop. - Find the SQL server details and change the location to (localhost) rather than the IP address of the live server. - All other details such as database and username remain the same.

In IIS make sure that the read / write permissions are set up correctly, just as you do for a normal installation.

Now go to the URL of the website that you created in IIS ie.
http://localhost/DNNCreative

You should now see the live website has been copied to your locahost installation.

Hope this helps, thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Chris ReddickUser is Offline
Nuke Newbie
Nuke Newbie
Posts:5

--
2006-11-01 05:32 PM  
Hi Lee,

Thanks for taking the time to reply so thoroughly to my question.
Your response has saved me a tremendous amount of time and frustration in trying to pinpoint the problem.

Thanks to your help, I was able to get the cloning to work, just as I wanted to. As I'm sure you hear quit often, I am very impressed, and certainly looking forward to continuing to use your service.

Sincerely,
Chris Reddick
Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-11-02 10:35 AM  
Hi Chris,

No problem, glad to be of help. If you would like to add a testimonial it would be really appreciated,  you can add one here:
http://www.dnncreative.com/Forum/ta...fault.aspx

Cheers,

Lee
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
Dnn local setup problem by imran shaikh
Hi All i have just installed the new site files on my local computer set the connection strin
RE: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. by imran shaikh
Hi i have the same issue Firefox has detected that the server is redirecting the request for thi
DNN nav issue by imran shaikh
Hi All This is imran i am using DNN 6.0 in which issue is that while i am refreshing the site nav
RE: Problem After Attaching/Detaching Database.mdf by Prakasam Srinivasan
thanks joe! But I have connect with database.mdf file in App_Data. I detach the database from
RE: Ventrian News Article by Collin Stefani
Posted By Joseph Craig on 2012-01-18 10:51 AM I'm not sure that you can with the built-in UI.
RE: Friendly URLs Broken by Vistalogix Corporation
Well, we figured out that the problem is related to .Net framework 3.5. Friendly URLs works fine und
RE: Problem After Attaching/Detaching Database.mdf by Joseph Craig
That behavior of running the installation wizard indicates a problem connecting to the database.
RE: Friendly URLs Broken by Vistalogix Corporation
Nope, just a straight-up DNN install and configured in Host -> Friendly URLs as described in my orig
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds