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

Forum

Subject: How to copy the content from a localhost install to a live hosted website
Prev Next
You are not authorized to post a reply.

Author Messages
leesykes
Nuke Master II
Nuke Master II
Posts:2993

10 Oct 2005 3:22 AM  
How to export the data from your DotNetNuke localhost install to a live hosted website.

DotNetNuke has the option to create a template. This allows you to create a template of your local setup and use it to rebuild the remote site.

Creating a template allows you to export all of the content you have created in your modules (in the localhost install), this will include all of the data from events, FAQ etc - even the skin settings you have applied per page.

What this means is that you don't have to create a backup of your localhost database & upload it, all you have to do is create a template & DNN will take care of the rest.- easy eh?!


If you are exporting the data from a custom module, you need to ensure that the developer has enabled the import / export data function otherwise this method will not work.

Tip: make sure that you have not changed any namings of skins / modules from your localhost install to the actual live install otherwise this will not work.

1) Install the DNN default install first onto your live site
The install procedure: This is (very basically) what you would normally do: (I will cover this in a later tutorial)
a) Upload all of the DNN install files to your hosting provider (You can download from DNN just the install files that are needed, rather than the full source)
b) Create an SQL Database with a username & password
c) Adjust your web config file to the username & password you specified
d) Type in your URL into a web browser
e) Upon opening DNN automatically installs all of the necessary files to your database
f) You now have a working copy of DNN

2) Install the skins, containers and extra modules you require, upload your logo
The Free DotNetNuke Tutorial: Quick Start Guide Video explains how to upload a logo.

3) from your localhost install, Export the template of that portal - Through Host / Portals / Export Template (make sure you tick export content)

4) DNN will tell you where it has saved the template - there will be 2 files that you need to copy (they will have the name that you specified when you exported the template)

5) Upload these 2 files to the same folder within your live install

6) In your live install go to the top admin control panel - on the rhs select Wizard

7) Choose the template you have just uploaded and select REPLACE content

8 + 9) Choose the default Skins and Containers that you originally specified in your localhost install (in the Admin menu / Site Settings)
(If you have selected different skins for each page, DNN will automatically sort this out for you as long as you have previously uploaded all of the skins and containers)

10) Enter your sites details - the Title, description etc.

11) Choose a logo

12) Click on Finish

13) DNN will automatically install your template with the settings you specified

14) Click on Home to view your complete site with the pages & content from your localhost install

DNN will install your own custom modules to the pages you had in your localhost install, but if it doesn't install the data, then you can transfer that across from your localhost database to your live database using Enterprise Manager & all should work fine.

As I stated above, if a custom module does not export / import the data using the Templates this will be because they haven't enabled the import / export function.

- This information I have compiled together from answering questions in the asp.net forum, if you want to see the full discussion, you can see it here:

http://forums.asp.net/ShowPost.aspx?PostID=1042377



Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
driley
Nuke Newbie
Nuke Newbie
Posts:8

05 Jul 2006 10:45 AM  
Lee,

Could this method serve as a good easy way to back up a site, assuming you download the template & resource file to another location?

Thanks,

Don
leesykes
Nuke Master II
Nuke Master II
Posts:2993

05 Jul 2006 10:53 AM  
yes it can. - I would always recommend to actually backup your SQL database as well as the method above will not transfer your registered users.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
leesykes
Nuke Master II
Nuke Master II
Posts:2993

20 Nov 2006 6:15 AM  
This post may also be of interest which details How to copy a live site to a localhost installation.

This method copies the actual tables rather than using the Template method, so you may find it useful as an alternative method.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
trenchard
Nuke Newbie
Nuke Newbie
Posts:8


04 Jan 2007 1:32 PM  

Is any progress being made on the template option?  In theory, it seems to be a great way to move a portal from dev to stage to production.  In reality, it doesn't work.

We see a few critical issues:

  • TABIDs change when moved > totally breaks external links and potentially internal links
  • Not all modules or content comes over

 


______________________________
Mark Trenchard
Director of IT, CodeGear
leesykes
Nuke Master II
Nuke Master II
Posts:2993

04 Jan 2007 4:04 PM  
Hello,

I don't think any further changes have been made to the template option in the latest versions of DotNetNuke.  Have you tried this method mentioned here How to copy a live site to a localhost installation You may find, this is a more reliable method of transferring data between DotNetNuke installations.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
trenchard
Nuke Newbie
Nuke Newbie
Posts:8


04 Jan 2007 5:19 PM  
This is pretty close to what we've been doing. It is too Infrastructure intensive, but it is the best way I guess. The one thing we didn't know about was the FixUser issue in SQLServer. THis will be helpful. Once we complete our instructions, we'll add them to the forum as well.

______________________________
Mark Trenchard
Director of IT, CodeGear
leesykes
Nuke Master II
Nuke Master II
Posts:2993

05 Jan 2007 4:13 AM  
Great, any further tips will be apreciated by all, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
canuck
Nuke Newbie
Nuke Newbie
Posts:3

17 Feb 2007 8:24 AM  
I am using the latest version of DNN and cannot find these options in the ADMIN. Have they changed ?

6) In your live install go to the top admin control panel - on the rhs select Wizard
7) Choose the template you have just uploaded and select REPLACE content

Thanks
leesykes
Nuke Master II
Nuke Master II
Posts:2993

19 Feb 2007 6:06 AM  
The wizard has now moved in the latest DNN 4.4 - To go to the wizard go to the Admin menu / Site Wizard

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
canuck
Nuke Newbie
Nuke Newbie
Posts:3

19 Feb 2007 9:43 AM  
Thanks for the reply Lee, found it there OK.

On another note, what do you recommend as procedure to :

- How to export the data from a live hosted website toyour DotNetNuke localhost .
- Backup strategy, would the above be OK ?

Steve
leesykes
Nuke Master II
Nuke Master II
Posts:2993

19 Feb 2007 9:59 AM  
Hi Steve,

I use this method:
How to copy a live site to a localhost installation.

Backup strategy - is the same principle, just take a backup of your database and all of your files and if something goes wrong you can just upload them and restore the database.

I would recommend you test out the procedure using a test live site with your hosting provider to make sure you can fully backup and restore everything if something goes wrong.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
canuck
Nuke Newbie
Nuke Newbie
Posts:3

19 Feb 2007 1:15 PM  
Great stuff ! Thanks for the help Lee.

Steve
Nandu
Nuke Newbie
Nuke Newbie
Posts:9

21 Mar 2008 3:56 AM  
Its great to hear that every one get solved their problems here. Its really a great site.
Hey Lee, I am using 4.8.1 version of dnn, i would like to customize my register page partially, i would like to add some fields to the page, i had done in adding controls to the page but facing problem in storing the data in database. Please help how to get out of it.

Any help is really appreciated.
leesykes
Nuke Master II
Nuke Master II
Posts:2993

27 Mar 2008 3:58 AM  
Hello,

Nandu, I'm glad the site is useful, afraid I can't offer any further advice apart from what Joe has given in your original post

if you have questions related to registration please use that forum thread, many thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
You are not authorized to post a reply.
Forums > DotNetNuke® > Quick Tips > How to copy the content from a localhost install to a live hosted website



ActiveForums 3.7

Latest Forum Posts

Best so far for me by mortymoose
This skin is CSS standard compliant.  I understand though that the solpart menu causes it not to val...
RE: centering a page in dnn by mortymoose
No I don't think there is any way to fix that.  It makes sense though because the scroll bar is actu...
RE: Host and Admin user login not working on remote host by paulrobinson
Yes I can register a user and login as that user. It is just the admin and host users which are not...
RE: New CSS site feedback please! by puuri
Everything, including the Flash elements, seemed to work fine during my viewing. I was trying to fi...
RE: MY FIRST DNN SITE by puuri
I just took a look and made it through just fine. I am very new to DNN and working towards generati...
centering a page in dnn by kawal
I have centered my DNN web pages using {text-align: center;} in the Body element.  This works fine, ...
RE: redirecting registered user to a specific page by puuri
I think I found the area that Joe describes by logging in as the Admin user and then from the Admin ...
RE: File Manager Upload (intermittent error) by dnnmq
Per Lee's suggestion, I removed NETWORK SERVICE from the website root then re-added it with Full Con...
RE: Solpartmenu and line breacks by saintX
Hello Lee and thanks for the answer. Obviously the page name can't exceed to more than 50 charcters....
RE: redirecting registered user to a specific page by saintX
Hello and thank you for the answer. May you please kindly explain me more specific where to find the...
RE: App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code by jncraig
I think that you'd probably be better served asking question like those over on the DotNetNuke forum...
RE: App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code by fletcherdunton
Hi Joe:That makes perfect sense, but I failed to mention that some of the code that I'd added is not...
RE: App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code by jncraig
I wouldn't recommend either of those approaches.You don't have to use the source code version of Dot...
App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code by fletcherdunton
This thread may be answered somewhere else, so forgive me and point me to the solution.  I'm current...
RE: Database error by derpir
Yeees!!! thank so much Lee!!! I will continue this by looking at video nr 3 on how to transfer fro...
RE: Database error by leesykes
go to programs / microsoft sql server 2005 / configuration tools / SQL server configuration manager....
RE: Database error by derpir
nailed it!!! but how do I restart with the configuration tool? regards //newbie
RE: Database error by derpir
You put me on the right track there. Turns out that I had server authentication set to 'Windows Au...
RE: Issue 22 - Login failed for user xxxx by leesykes
I just checked and it does have it: Right click on the SQL server node - this is the node with th...
RE: Database error by leesykes
I just checked and it does have it:Right click on the SQL server node - this is the node with the gr...
DotNetNuke Modules
RSS Feeds