Forums / General Questions / Copying Site to Another Domain

Copying Site to Another Domain

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

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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
21 Sep 2008, 21:34
#2
soba avatar

soba

New Zenner

Join Date:
Jan 2008
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, 07:04
#3
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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
22 Sep 2008, 13:15
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
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
22 Sep 2008, 14:20
#5
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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
22 Sep 2008, 15:19
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
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.
22 Sep 2008, 15:52
#7
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
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, 16:17
#8
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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
22 Sep 2008, 16:21
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Posts:
3,189
Plugin Contributions:
0

Re: Copying Site to Another Domain

6. Edit the configure.php files for the new hosting.
7. No need for number 3.
8. 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, 16:51
#10
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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.

8. 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
22 Sep 2008, 17:46
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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.
22 Sep 2008, 19:04
#12
dieuxsoldat_04 avatar

dieuxsoldat_04

Zen Follower

Join Date:
Jan 2008
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
09 Oct 2008, 21:32
#13
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
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, 02:02
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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
21 Oct 2008, 19:30
#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!