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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Copying a site to a new serverCopying a site to a new server
Previous
 
Next
New Post
5/15/2013 12:20 PM
 

I want to copy a site to a new server. I've developped a site on a test server, now I want to copy it to a public server (both run DNN 07.00.05).

I thought I could export the site as a template using the "export site template" button in the site management screen. ftp the template file from one server to the other and create a new site based on that template.

When I export the site without content, it is really without contents. Only the pages and which module is placed where on the page seems to be included. Not even the module settings are included.

When I export the site with content, The site creation fails with a file not found error on a file in the newly created portal. The site is now in some half broken state. There is a page with teh default dnn template, but the login button results in a half login screen. I can create a next protal with the same alias (which normally is not possible) and it fails with the same error message, except the portal id is incremented.

I don't see any files included in the template, it's an xml file, so there probably can't be any files included at all. I would have expected the template to be a zip file.

I think I'm mistunderstanding the concept of the site template?? What would be the correct way to copy a site to an other server?

 
New Post
5/15/2013 1:57 PM
 
The templates are just that - templates. No content included. It's a way to establish a standard design, save it and re-use it.

Most people manually copy their entire directory to the new server, back-up their database and restore it on the new database server.

Mark
 
New Post
5/16/2013 3:49 AM
 

Are you sure we're talking about the same thing? I'm not talking about a skin, but a site template which does have the option to include content. And texts *are* included, but images aren't and the references to the cause fatal file not found error while creating a site based on that template.

Copying the whole database would copy data from all portals, not just one and it would be impossible to add a portal to an DNN install which already contains portals.

And why would there be an option to 'include content' in a site template when that only results in file not found errors? Or am I supposed to create the new portal directory and copy the files into there before creating the site? (like /portals/6/, hoping that will be the new directory.) That seems to be very fumbly.

Are you saying there is no way to move a portal from one server to the other? For the site template (which is beginning to seems pretty useless) you need host access, how does that work for paid DNN hosting where you don't have host access? You could ask the provider to click a few buttons, but no one will give you a whole database dump. The only option is to recreate the whole site page by page, setting by setting because on the old hosting site there is no way to export your site and on the new site there is no way to import it? Not even with the help of the host? That sounds very unlikely for a CMS that's been evolving for over 10 years.

So all the work I did creating the site on a test server, has been a waste of time and I have to redo it all on the public server?

 
New Post
5/16/2013 4:00 AM
 

This is beginning to look like a bug. When I create a new portal based on a site template (including content) on the same server where I created the template, it does seem to work, except that if you look closer, the images on the new portal link to the files on the old site. So when I create a new portal, which happens to become /Portal/8/, the images it uses are the images of the portal used to create the template, e.g. /Portal/7/.
Removing portal 7 will cause the images in portal 8 to become broken images.

Site templates don't seem to be intended to work across servers. (and probably have never been tested that way) That would explain why you can't just easily upload/download the templates, like you can with extensions, but have to go to the file managers to download/upload the template from one server to the other before you can use it.

 
New Post
5/16/2013 5:48 AM
 
Aha!
When you export a template with content, it also creates a .template.resources file, which is not shown in the DNN file manager. You're not allowed to upload a file with that extension (not even via a zip file) or rename a file to that extension, etc. So you'll have to resort to ftp.
it appears only some known extensions are allowed, a file called hello.world isn't displayed/allowerd either.

It's a lot more than I had, but still not perfect. Images (except the favicon), html-module content and module settings are included, but site settings aren't. And unfortunately the import/export function of modules isn't used, so modules which store their configuration someplace else (other than module settings) and nicely provide the import/export interface, still come without their data. (writing this, I guess that's because the is only a general import/export, not seperate import/exports for configuration and data and in a template you do want the configuration of a module, not the data)
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Copying a site to a new serverCopying a site to a new 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