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

Forum

Subject: CLone a DNN instance
Prev Next
You are not authorized to post a reply.

Author Messages
clarityTeam
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:5

21 Oct 2006 1: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
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3960


23 Oct 2006 3: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/columnists/vIacoboni/moreintelligentbackupandrestore.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/leesykes

Lee Sykes's Facebook Profile
clarityTeam
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:5

01 Nov 2006 11:32 AM  
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
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3960


02 Nov 2006 4: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/tabid/88/view/topics/forumid/15/Default.aspx

Cheers,

Lee

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

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > CLone a DNN instance



ActiveForums 3.7

Latest Forum Posts

RE: [Server Error]This error can be caused by a virtual directory not being configured as an application in IIS. by arm
Posted By mnaoj on 04 Dec 2008 11:46 AMError 1 It is an error to use a section registered as allowDe...
How to Create Module : by hassangas2003
this first my question in aforum,i'm abeginer in DNN,I have web user control already used to old pro...
Background colour by petecarrick
Hi,Sorry if this is a real dumb question, I've been experimenting with the Vortex skin and I have ch...
RE: Horizontal menu vertical borders by petecarrick
That worked perfectly, thanks very much Lee.Pete
Change Login Page by edeakin
Hey guys it’s me again. Great work on session 46 keep up the great work! I want to be able to add m...
RE: Module Wrapper & Tab Aggregator?? by gbrown
Found the Ajax Module Wrapper from Gumbosoft. Bought it and tried it - it works inside of Tab Aggreg...
Module Wrapper & Tab Aggregator?? by gbrown
Has anybody tried to place a Module Wrapper module from ZLDNN inside a Tab Aggregator module from DN...
RE: SWF Tutorial Conversion by raymueller
Thanks and I will continue to research. Each of the applications pick up the introduction (~ 20-25 s...
RE: Please do review by leesykes
There are a couple of things that you could look at:Initial page load time of the sites was slow, t...
RE: Module Development - Settings Page by leesykes
thanks for letting us know the solution and if there's anything else we can help out with please let...
RE: SWF Tutorial Conversion by leesykes
not sure, its not something I have tried, the swf should convert, perhaps its worth googling around ...
RE: not been able to download videos by leesykes
Normal 0 unctuationKerning/> false false false oNotPromoteQF/> ...
RE: Styling the main menu by leesykes
When you add code to your skin.css file, make sure you press CTRL+F5 to reload the page and reload t...
RE: Horizontal menu vertical borders by leesykes
To find the id of the menu item, use the web developers toolbar for Firefox, go to information menu...
RE: Module Development - Settings Page by HMDevelopment
Hello Lee. No thanks -- I have still earned value from this site. I did quite a few 'video' tutor...
RE: Can I modify the Default Events module only for a Portal? by jncraig
If you create a skin for your site, it will apply only to your site.  Also, portal.css applies only ...
RE: How to prevent auser from multiple login. by jncraig
I'm not aware of a way to do that.
RE: Display main menu and sub menus in different locations by jncraig
I would recommend that you study our tutorials regarding skin development as a good start.The exact ...
SWF Tutorial Conversion by raymueller
I have been trying to convert some of the older SWF tutorials to a format that I can load on my Zune...
SWF Tutorial Conversion by raymueller
I have been trying to convert some of the older SWF tutorials to a format that I can load on my Zune...
Free DotNetNuke Podcasts
RSS Feeds