Forums / Installing on a Windows Server / duplicating new site

duplicating new site

Locked

Views: 1,184

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 May 2009, 10:34 PM
#1
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

duplicating new site

hello all, i am creating a new site, i want to use the same files(everything except the database) as the my old one.. My first thought is to copy the files into a new domain folder...

Is this the best way to do this

what other files would I have to change?

Thanks

27 May 2009, 8:44 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: duplicating new site

Yes... the process is relatively straight-forward...

I imagine that you are mostly wanting to duplicate the DESIGN of your site?

If you followed (very strictly) the template over-ride convention, then it's simply a case of making a copy of all your custom_template files and folders.

For various reasons, I find it "safer" and more reliable to install new zencarts the conventional way... upload the software and run the install program. When the install is successful, I FTP my custom_template folders/files to the server, and select the template in the admin console.

Hey presto... I now have a new site that looks identical to the first one!

20 years a Zencart User

27 May 2009, 2:41 PM
#3
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Re: duplicating new site

schoolboy:

Yes... the process is relatively straight-forward...

I imagine that you are mostly wanting to duplicate the DESIGN of your site?

If you followed (very strictly) the template over-ride convention, then it's simply a case of making a copy of all your custom_template files and folders.

For various reasons, I find it "safer" and more reliable to install new zencarts the conventional way... upload the software and run the install program. When the install is successful, I FTP my custom_template folders/files to the server, and select the template in the admin console.

Hey presto... I now have a new site that looks identical to the first one!

I honestly cant say if i have.. I have had so many challenges getting my store to this point.. I think I would cause more problems if I re-ran the install.. The only things I really want to change are the databases and the site names, which is why i thought it was easier to copy all the files and just change the db names and domain names

thoughts?

27 May 2009, 3:51 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: duplicating new site

It would be better (and more reliable) if you did have a proper template override in place, but the following may work

  1. FTP your entire ZC installation (all files and folders) to your local drive.

  2. Create a database (empty) on your new server (domain).

  3. FTP a fresh copy of ZC 1.3.8a to the new server and perform a standard install.

  4. What you do now depends a lot on what additional modules you may have installed on your original site, because some of these modules do the following:

  • they create new files
  • they modify some existing files
  • they create new folders
  • they create and/or update database tables.

So you need to establish what modules you have, and (very important) which of the above alterations/additions such modules may be invoked on a new site.

Once you have established this, (and depending on the modules concerned) you will have to:

make appropriate updates to your database
identify altered files and their path locations
identify additional folders and the relevance of their contents to a new install

... and then ensure that these files/folders are sent FTP to the server.

Remove your includes/configure.php file from your local drive (put it in another directory away from these files and folders) then FTP your includes folder (from step 1) to the new server, choosing to OVERWRITE all files and folders on the server where you've just installed the new software.

  1. You now need to edit your two configure.php files (in includes and admin/includes to reflect the new server URL and associated paths, new database name, new database username & password, etc...

  2. Your will need to run fix_cache_key.php (see free addons) to re-set your database cache location.


However, it may be easier to clone everything (files AND database) so that the integrity between your code files and your database set-up is consistent. Before your cloned site will work, you'll still need to edit the two configure.php files as described above and run the fix_cache_key.php .

Then its a case of cleaning out the database of all unwanted data - probaby just product and customer related data.

20 years a Zencart User