Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default 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!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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/i...hp?article=100
    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    .

    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.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default 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!

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default 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.

  7. #7
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default 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!

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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??
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Error cloning site

    Quote Originally Posted by kobra View Post
    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.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v150 cloning perweightunit error
    By gerilya in forum Addon Shipping Modules
    Replies: 2
    Last Post: 7 Jul 2012, 02:35 PM
  2. Replies: 4
    Last Post: 16 May 2010, 02:21 AM
  3. PLEASE HELP-Cloning my zencart site
    By Pnkgirl25 in forum General Questions
    Replies: 1
    Last Post: 8 Nov 2009, 02:24 AM
  4. Error cloning live site on local server
    By ckosloff in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 6 May 2008, 08:29 PM
  5. Error cloning a shipping module
    By brain21 in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 2 Oct 2006, 05:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR