Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Trying to set up local copy of live store on WAMP

    Hi,

    I have a live store, but it's not using a responsive template. (ETA - ZenCart version 1.5.4 - says "Your version of Zen Cart® appears to be current" although I think the current one is 1.5.5a?)

    I tried installing a couple of responsive templates and switching to them briefly, but they needed a good bit of modification before they'd be ready to put live, and I didnt' want to take my store offline to do that.

    So I reckoned the best way was to install WAMP server on my local machine and play around with things there.

    I've installed that, and have copied all my zencart files and folders from the live server to my local machine, changing the two configure.php files to account for the change in location (define('DIR_FS_CATALOG', 'C:/wamp/www/ZenLocal/'); define('HTTP_SERVER', 'http://localhost'); etc)

    I created a db in phpMyAdmin with the same name as my live one, and I exported / imported from live to local.

    Now I can access something vaguely resembling my live site. The homepage has the correct text, and it's showing the correct categories and names of my EZ pages, but everything else is way off. The layout is nothing like the live site, and when I click a category or an EZ page, it just goes straight to my localhost settings. Also, I can't log in to the admin - it just says that the password is wrong. I assumed the password would stay the same when I copied everything down?


    Anyone know why it's doing this and what I need to do to get things right? Or is there are better way to do all this? A way to preview / modify new templates on the web server without messing up the live site?


    Many thanks for any help!!

    WP.
    Last edited by WhitePhantom; 12 May 2016 at 04:21 PM. Reason: Additional info

  2. #2
    Join Date
    May 2005
    Posts
    532
    Plugin Contributions
    0

    Default Re: Trying to set up local copy of live store on WAMP

    Not sure if this is the way to do it but I discovered if you delete the passwords in the admin table and then go to log in you are prompted for a new password. Leave the old one blank (as you have just deleted it in the table using phpmyadmin) and enter the new ones. This allows you to get logged in to the admin area.

    hope that helps as a start. I am no expert so sorry if it proves unsucessful

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Trying to set up local copy of live store on WAMP

    A pretty sure way of cloning a live site locally on your LAMP / MAMP / WAMP / XAMPP stack (whatever you prefer) is to first install the exact same version of your live ZC store with exactly the same DB / admin credentials and table prefix. Test the fresh install.

    Then lock up (change permissions of) your configure files (400 or 444) so they can't be overwritten when later FTP'ing your live file system.

    Next you drop all tables from your local DB and import your live DB into the empty local DB.

    Lastly, you copy all live files over the existing local files. You should have 2 errors after the copy procedure, namely saying that the 2 'configure.php' files could not be opened / overwritten.

    That should be it.... you can now start modifying/testing/customizing whatever on your local clone without interrupting your live business.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,710
    Plugin Contributions
    17

    Default Re: Trying to set up local copy of live store on WAMP

    If the PHP version on your "backup" site is much below your live site, then the import of your live site to your "backup" site will present difficulties with logging in as the password encryption process may be different and unusable for the lower PHP version after being so encrypted in the higher version.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,660
    Plugin Contributions
    11

    Default Re: Trying to set up local copy of live store on WAMP

    as far as a better way to do this, no, you are going about things in the right way. installing a local version of your site using whatever tool is the way to go. if you want to really have things better under control, but it all under a source version control system, ie git, and set up a repository. a bunch of work to learn on the front end, but well worth the effort down the road.

    as far as your current problems, i'm not sure what you mean by clicking onto a page it goes to your localhost settings. can you be more specific?

    are all of your products there? are you sure the DB completed the import and you are now using the local database? after that i would check to ensure that you are using the right template...

    if all of the code is the same, and the site "works", i have found most of the time the difference is in the DB, so again i would check to ensure that the data is the same.

    finally as others have mentioned, different versions of PHP can affect your local site.

    good luck!
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

  6. #6
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Trying to set up local copy of live store on WAMP

    Do you have any URL rewrite mods installed or a .htaccess file in the root of your wamp install?

  7. #7
    Join Date
    Jul 2012
    Posts
    16,710
    Plugin Contributions
    17

    Default Re: Trying to set up local copy of live store on WAMP

    FYI, the ZC suggested method of changing the password is provided in this FAQ.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Trying to set up local copy of live store on WAMP

    Quote Originally Posted by mc12345678 View Post
    If the PHP version on your "backup" site is much below your live site, then the import of your live site to your "backup" site will present difficulties with logging in as the password encryption process may be different and unusable for the lower PHP version after being so encrypted in the higher version.
    Valid point indeed!

 

 

Similar Threads

  1. Problem installing local copy of live site
    By NoHug4u in forum Installing on a Windows Server
    Replies: 10
    Last Post: 16 Dec 2014, 08:52 PM
  2. Having issue on local wamp set up
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Feb 2012, 09:32 AM
  3. Trying to set up local copy of existing Zen Cart
    By larf2k in forum Installing on a Windows Server
    Replies: 4
    Last Post: 1 Jun 2010, 11:22 PM
  4. Update local copy and then transfer to live server
    By fawad123 in forum General Questions
    Replies: 9
    Last Post: 24 Apr 2010, 12:43 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