Zen Cart Logo
Forums / General Questions / Error cloning site

Error cloning site

Locked

Views: 1,605

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Jun 2007, 3:36 AM
#1
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Error cloning site

Hi,
This question is a second stage of cloning database, which was successfully resolved.
My webhost has a utility for backing up the whole site, it compresses the whole folder in a tar.gz file which can then be downloaded locally.
No problem there, I uncompressed it in the appropriate folder (www for WAMP sever), and all the folders and files are there.
I renamed the folder eliminating the .com extension.
NOW, when calling index.php to start the site, Firefox switches it to zc_install/index.php, thus calling the intermediate folder zc_install which doesn't exist and I get a 404 error.
How can I eliminate this redirection?
Thanks!

18 Jun 2007, 4:45 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Error cloning site

Your configure.php files are either not readable, not present, or contain invalid information (ie: a database that cannot be connected to using the information in the file).

You need to set up the right information manually in the files, or do a fresh Zen Cart install to generate the right content.

These FAQ's are intended to guide the process of setting up on another server:
http://www.zen-cart.com/wiki/index.php/LocalCopySite
https://www.zen-cart.com/tutorials/index.php?article=100
http://www.zen-cart.com/wiki/index.php/Server_Admin_-_Switch_Servers

18 Jun 2007, 4:46 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error cloning site

My webhost has a utility for backing up the whole site
This is only used to move your site intact to another host.....

This sounds like cPanel - if so use the backup tool and grab a home dir backup (files only) and then a DB backup for the Zen Cart DB and use these individually.

The home dir will restore all the files and you will have to edit the configure.php files

The Db back can be restored using your winamp phpmyadmin tool

18 Jun 2007, 12:23 PM
#4
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Error cloning site

OK Dr. Byte and Kobra!
Ultra fast response as usual.
Some clarifications: the webhost uses HSphere, not cPanel, and the utility works fine.
So I have the site on the one hand and the DB on the other, the problem is to connect both.
Since I don't know enough PHP to edit configure files, will follow steps in the Wiki, all this is clear now.
It will take some time because first I will return to an older version of WAMP, where the PHP4 add-on still worked, will post here if running into any trouble.
Just one question: the wiki states to check the "add DROP TABLE", but the manual states the opposite, p.366.
Guess I will follow the wiki and email KH about it.
Many thanks!

18 Jun 2007, 3:51 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error cloning site

Since I don't know enough PHP to edit configure files,
The parts of most edits are "english" only and can be changed by yourself easily.

Just insure that you use a text only editor like note pad or?? And change the paths as instructed within the file and NOT the code punctuation - just the english text

Things like the DB name, DB user, DB pass, the site url and paths to the files

19 Jun 2007, 3:03 AM
#6
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Error cloning site

Kobra,
I understand and thanks for the explanation.
I will delve into those files and try to fix it without going the brute force way.
If I mess them up I guess I will have to nuke and restore from backup.
But it will be an interesting exercise, and I will learn more in the process.
Thanks.

23 Jun 2007, 2:13 AM
#7
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Error cloning site

SUCESS! I cloned the site.
However, I hit some bumps on the road, as follows:

  1. phpMyAdmin acted up really bad on me.
    I was first using WAMP v. 1.7.2 and couldn't drop all tables without deleting the whole database, instead of getting an empty database with 0 tables.
    No big thing, because I was able to recreate the database and only then perform the import.
    I tried to solve this problem by going back to a previous version of WAMP (1.7.0), which turned out to be even worse.
    It wouldn't import tables at all but recreate the database I had previously saved to file following verbatim the instructions in the wiki.
    It had a different name than the local one, but again, no biggie, I just changed the two configure.php files to point to it.
    Can anybody tell me why phpMyAdmin showed this weird behavior?
    I am looking into using a different database administration tool.
    Anyway, after running Dr. Byte's fix_cache_key utility the site was replicated.

  2. The webhost includes in every hosted site certain folders that are not part of the Zen Cart installation like modlogan, webalizer, etc.
    Luckily, I have another local install of Zen Cart in a different computer and could look up the folders which belong in a local install and delete the unwanted ones.
    Tested OK.
    This part is not in any instruction set but I think it should be.
    My 2 cents.
    Thanks!

23 Jun 2007, 5:48 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error cloning site

The webhost includes in every hosted site certain folders that are not part of the Zen Cart installation like modlogan, webalizer, etc.....

This part is not in any instruction set but I think it should be.
Guess common sense should prevail here as one should recognize what is Zen cart and what is not??

23 Jun 2007, 4:41 PM
#9
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Error cloning site

kobra:

Guess common sense should prevail here as one should recognize what is Zen cart and what is not??
Hmmm, not so easy for a newbie.
Maybe obvious to you.
It would be better to spell it out, IMHO.
More importantly, do you any idea why phpMyAdmin behaved the way it did?
Thanks.

23 Jun 2007, 8:25 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Error cloning site

More importantly, do you any idea why phpMyAdmin behaved the way it did?I am supposing that this is in WAMP and I have no experience with this as I do not use it.