Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Copy existing site to run on XAMPP

    I recently installed XAMPP (Linux version of LAMPP) on my computer. I would like to have a working copy of my site running
    on my computer for debug and development purposes . As I am still somewhat of a Newbie, I have some questions.

    1. After I create a database with the appropriate name, on the
    local host, can I then use the EXPORT function from my live
    web site and then the IMPORT function at localhost? This
    would be using phpMYAdmin.

    2. Do I really need to run the Zen Cart install and then copy files
    from my live site, or can I just copy the files from my live site
    and store them on the localhost? This assumes that the
    configuration files both point to the proper database name.

    I really would prefer to not have to go through the Zen Cart install
    process as I have several modifications to the database tables
    and to the php code that I really don't want to have to duplicate.

    If anybody has some help, or knows of a good tutorial, I would
    appreciate the help. Thanks.

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

    Default Re: Copy existing site to run on XAMPP

    You really should run through the basic Zen Cart install on the localhost setup (before importing your data) so that it can build the configure.php files to suit your localhost setup.
    Then test that it works correctly with the demo data before importing your live data.
    https://www.zen-cart.com/tutorials/i...hp?article=100

    However, if you're confident that you're an expert in hand-coding configure.php file settings and sorting out the issues you may encounter by changing where it's running, feel free to bypass the recommended steps.


    Remember also that Zen Cart v1.3.8a and older are NOT compatible with PHP 5.3.0 or newer ... so choose your LAMP elements accordingly.
    .

    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
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Copy existing site to run on XAMPP

    DrByte,

    Thanks for the reply. I have been trying to run the
    zc_install and have been having problems. Can't get past the
    data base setup. It won't recognize password even though I
    have verified the password several times. Maybe because of a
    PHP incompatability problem? I think I have XAMPP set up for
    PHP 5.1.3, but I will check. Perhaps I need to reinstall.

    I thought I was capable of making the changes as required to the
    configure.php files, both in Admin/ includes and in includes.
    When I try to run the site I get a screen telling me I have to
    run the zc_install. Must be a flag somewhere that forces this.

    But, the bigger issue is that the setup will not recognize the
    password. And if the setup does not recognize the user and
    password then it doesn't matter what I put in the configure files.
    Wonder where I am going wrong. Maybe I am not as clever as I
    think I am. LOL!


    I appreciate your answer and any guidance you

  4. #4
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Copy existing site to run on XAMPP

    Zen Cart v1.3.8a requires PHP 4.3.2 - 5.2.x. It won't work with higher or lower versions of PHP.

    But that won't affect database issues, let alone passwords.
    Sounds like you need to research more about your XAMPP setup and make sure you're truly using the proper database name, username, and password. Maybe make new database, new user, with new password, and use those instead.
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Copy existing site to run on XAMPP

    One of the whole reasons for installing clean on the "new" server is to check whether it can even run there. It helps narrow down causes of problems, esp when most often the problem is not the software at all, but rather the server config or the database setup, both which are outside the scope of Zen Cart.
    .

    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.

  6. #6
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Copy existing site to run on XAMPP

    DrByte,

    Looks like the LAMPP version I downloaded is actually running
    PHP 5.3.0, so that is at least one problem.

    I did create a new database and still can not get the zc_install
    to connect to the database. Must be some operator error.

    I will also uninstall the LAMPP version that I have loaded and
    install an older version. I loaded 1.7.2 and I think there is
    a version for Debian that is 1.5.3 . Perhaps that older version
    has the correct PHP version.

    Thanks for your help.

  7. #7
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Copy existing site to run on XAMPP

    DrByte,

    I found an older vesion of XAMPP that is using PHP 5.1.3.
    According to these instructions from Apache friends I can
    overwrite the already installed version. Will that work when I am
    overwriting a newer version with an older one? I know in Windows
    that it gives warnings about such things. I am still learning
    Linux. I would be replacing the name of the .tar.gz file with
    the older file.


    Extract the downloaded archive file to /opt:

    tar xvfz xampp-linux-1.7.2.tar.gz -C /opt

    Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.

    Warning 2: already installed XAMPP versions get overwritten by this command.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,363
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Copy existing site to run on XAMPP

    XAMPP 1.7.1 will work with Zen Cart v1.3.8a. Here's a link to download the linux tarball: http://www.apachefriends.org/downloa...x-1.7.1.tar.gz

    As for installing, I'll leave it up to you to decide how you want to deal with existing software already on your computer.
    .

    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.

  9. #9
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Copy existing site to run on XAMPP

    DrByte,

    Thanks for the link. I donwloaded version 1.5.3a and can not connect
    to http://localhost . Strange ! I will download the version that you have
    in the link and see how that goes.

    Regards

  10. #10
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Copy existing site to run on XAMPP

    DrByte,

    HELP ! I installed the version of LAMPP for which you sent the link.
    Now I can not create a new database. It says I have no priviledges.
    I am truly lost here. Can you help? I appreciate all your efforts.

    John

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h How to configure a local copy of an existing site?
    By romulus in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2012, 09:50 AM
  2. v139h local host - how do I set up a copy of my site on xampp?
    By Maynards in forum Installing on a Windows Server
    Replies: 2
    Last Post: 3 Mar 2012, 08:23 PM
  3. How to copy HTML / Add To Cart to an existing web site?
    By shark-mark in forum General Questions
    Replies: 4
    Last Post: 30 Oct 2011, 02:12 PM
  4. Newbie - Installing local copy of existing site
    By agent_44 in forum Installing on a Windows Server
    Replies: 11
    Last Post: 19 Aug 2009, 03:24 PM
  5. Can't get XAMPP Apache and Mysql to run
    By Decostyle in forum Installing on a Windows Server
    Replies: 22
    Last Post: 19 Dec 2008, 06:06 AM

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