Forums / General Questions / Copying Site to Another Domain

Copying Site to Another Domain

Locked

Views: 3,155

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
21 Sep 2008, 4:49 PM
#1
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Copying Site to Another Domain

Hey Guys,

I created a Zen-Cart store and after being live for a while, I thought it was time to incorporate new things and to renovate the site a little. What I am trying to do is to make a exact copy of the store on a separate domain for testing and etc.

I tried using the move hosts tutorial, move directory tutorial, and a few others. They didn't work completely and I think the reason why is because the domain name changed.

Can someone help me make an exact copy of my Zen-Cart store onto another domain?

Any suggestions, guides, or links would be greatly appreciated!

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

21 Sep 2008, 9:34 PM
#2
soba avatar

soba

New Zenner

Join Date:
Jan 2008
Location:
EGYPT
Posts:
66
Plugin Contributions:
0

Re: Copying Site to Another Domain

1.backup your database from old store
2.download it to you computer
3.install fresh copy of zen cart in new domain (easy way )
4.open your database make nessesary changes in first lines
like database name and database host

5.go to your new store admin and istall SQL (copy and paste dont upload)

done

22 Sep 2008, 7:04 AM
#3
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: Copying Site to Another Domain

When you say Open database did you mean open the sql file and edit it with notepad?

Also, shouldn't I upload backup to the new domain? Sorry, could you be a little more precise?

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

22 Sep 2008, 1:15 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Copying Site to Another Domain

  1. Backup your database using phpMyAdmin from your webmaster panel (this will copy it to your local computer)
  2. create new (blank) database on new domain
  3. install Zen Cart on new domain
  4. use phpMyAdmin from the webmaster panel on the new domain to restore the database you backed up in step 1

There's a tutorial about backing up your database at https://www.zen-cart.com/tutorials/index.php?article=103

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

22 Sep 2008, 2:20 PM
#5
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: Copying Site to Another Domain

Both your database methods are slightly different.

Like I said in my last post, do I just edit the database name and database host in the SQL file with note pad then upload it?

So for step 3, I install a Fresh copy of Zen Cart then just go ahead and over write everything with a copy of my store that's currently live?

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

22 Sep 2008, 3:19 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Copying Site to Another Domain

I don't believe that information is stored in the database. You might have to tinker with includes/configure.php and admin/includes/configure.php.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

22 Sep 2008, 3:52 PM
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Copying Site to Another Domain

4.open your database make nessesary changes in first lines
like database name and database host

That advice would only have applied if you have your own dedicated server and so be able to CREATE brand new databases using phpMydmin. In that instance you probably wouldn't want to create a new database with the name of the old domain tied into it.

On Shared Hosting you have to create new (blank) databases using your Web Hosting control panel, and can only modify them using phpMyAdmin (you cannot create new databases using phpMyAdmin).

The advice from 'afo' (Mary Ellen) was correct.

Vger

22 Sep 2008, 4:17 PM
#8
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: Copying Site to Another Domain

So is the following correct?:

  1. Backup current live store I want to copy.
  2. Backup use phpMyAdmin to create a copy of MySQL Database.
  3. Install Fresh Zen-Cart on the Domain I want to copy it to.
  4. Upload the Backup I made of the live store.
  5. Upload MySQL Backup to new Database
    and Finished?

Anything I missed or needs to be added?

Would anyone be able to tell me about how to edit the configure.php to make it an EXACT replica of my current site on a different domain?

Sorry for the strange request and asking for precise details. I tried it once and it failed for some odd reason.

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

22 Sep 2008, 4:21 PM
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Copying Site to Another Domain

  1. Edit the configure.php files for the new hosting.
  2. No need for number 3.
  3. Your DIR_FS (root) pathways and db details will be different for the new hosting, and only you will know what they are.

Vger

22 Sep 2008, 4:51 PM
#10
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: Copying Site to Another Domain

Can anyone give an example what I should edit in the SQL? It seems to have no organization.

  1. Your DIR_FS (root) pathways and db details will be different for the new hosting, and only you will know what they are.

So is this information important? Do I need to edit something in the DIR_FS or configure.php regarding it?

Thanks!

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

22 Sep 2008, 5:46 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Copying Site to Another Domain

The FAQ on moving to a new host is exactly what you need to do: https://www.zen-cart.com/tutorials/index.php?article=100
Using the approach described saves you from having to edit configure.php files, since the installer builds them for you ... correctly for the new server's configuration.
As to editing the mySQL export file, if you follow the recommended backup instructions in the Backup-by-phpMyAdmin FAQ (which is linked from the other FAQ) you won't need to touch that file's contents.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Sep 2008, 7:04 PM
#12
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
Location:
Southern California Coast
Posts:
174
Plugin Contributions:
0

Re: Copying Site to Another Domain

I will try it the way Dr.Byte described then the way previously discussed.

Be back in an hour or so.

  • Jason

General Manager, Lead Designer and Web Master of Endless Sonata

9 Oct 2008, 9:32 PM
#13
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: Copying Site to Another Domain

afo:

  1. Backup your database using phpMyAdmin from your webmaster panel (this will copy it to your local computer)
  2. create new (blank) database on new domain
  3. install Zen Cart on new domain
  4. use phpMyAdmin from the webmaster panel on the new domain to restore the database you backed up in step 1

There's a tutorial about backing up your database at https://www.zen-cart.com/tutorials/index.php?article=103

I did all of this.
I have made a new site on the same host, but I have a dedicated IP address and a new part of the server so it has it's own admin panel etc.
I have imported my old database because I want the new site to stock part of the old site's inventory.
I used the fix_cache_key.php file.
I have everything working really well, just a couple of problems:
Where have all the products gone?
Where have all the zones gone??
Can you help with this please?
I am almost ready to go live, but if I have to replace all of this info it will take weeks!
The strange thing is, all my customers' information and orders are still there!
The site I'm working on is http://www.craftpaints.co.uk
The site that is being cloned is http://www.artyfactsforcrafts.com
Thanks for any help
Regards
MsGay Elston
http:artyfactsforcrafts.com
http://www.craftsupplies.co.uk
http://welshwiccashop.com

10 Oct 2008, 2:02 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Copying Site to Another Domain

gayelston:

I did all of this.
I have made a new site on the same host, but I have a dedicated IP address and a new part of the server so it has it's own admin panel etc.
I have imported my old database because I want the new site to stock part of the old site's inventory.
I used the fix_cache_key.php file.
I have everything working really well, just a couple of problems:
Where have all the products gone?
Where have all the zones gone??
Can you help with this please?
I am almost ready to go live, but if I have to replace all of this info it will take weeks!
The strange thing is, all my customers' information and orders are still there!
The site I'm working on is http://www.craftpaints.co.uk
The site that is being cloned is http://www.artyfactsforcrafts.com
Thanks for any help
Regards
MsGay Elston
http:artyfactsforcrafts.com
http://www.craftsupplies.co.uk
http://welshwiccashop.com

Posting the same thing in multiple places all over the forum creates disjointed discussions, and leaves topics without any resolution. Please don't do that.
You already started a dedicated thread for the topic. Please keep it there: http://www.zen-cart.com/forum/showthread.php?t=110132

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Oct 2008, 7:30 PM
#15
marcelarr avatar

marcelarr

New Zenner

Join Date:
Oct 2008
Posts:
54
Plugin Contributions:
0

Re: Copying Site to Another Domain

Thanks dr. byte! I just did it and it worked like a charm.

Thanks a million!