How to: Create a local copy with XAMPP on Windows

Hint

If you store the “dev” and “prod” websites on one server, you should understand that they both are using common resources such as CPU/RAM/Disk/etc. And if any error/issue occurs on the “dev” project, it can affect “production” aka live website. And it even may result in losing customers and revenue.

We can provide development servers for your projects, where you can enhance and improve your store.

Overview

Having a test copy allows you to do experiments with your store, make additional configuration and development without affecting your live store.

Multi-Vendor and CS-Cart are not very demanding in respect to a web server, they can be launched on almost any web server, however, you should know the basics of web development.

You will need to install and set up a local web server on your computer. There are several ways of doing that:

  • Docker
  • Vagrant
  • OpenServer
  • Xampp

We recommend using Xampp (XAMPP Apache + MariaDB + PHP), as it’s the easiest way and requires minimum configuration. If you want to use another way (Vagrant, Docker OpenServer), just let us know and we will provide instructions.

There is a detailed section devoted to the installation of Multi-Vendor and CS-Cart. We advise to start with it: docs.cs-cart.com

User guide

  1. Install Xampp. Here’s the official website:XAMPP Apache + MariaDB + PHP

  2. Copy the store files from the hosting to your computer. There are several ways of doing that:

    • Transfer files using an archive. To do so, connect to the hosting using Putty and create an archive with the project files with the zip action. Connect using FileZilla and copy the archive on the computer.
    • Transfer files via console using PSCP (comes with PuTTY).

    For more details on managing files, refer to: How to: Development: Manage files (GUI)

    Hint

    We recommend copying files using an archive, as it’s much faster considering the number of files to transfer.

    We use PuTTY and FileZilla.

    Open the folder with the project.

    Compress the public_html folder.

    Transfer files using FileZilla.

  3. Copy the MySQL database using PhpMyAdmin.

    Open PhpMyAdmin in Xampp (localhost/phpmyadmin). Create and import the database.

  4. Prepare for the launch:

    • Clear the cache. Delete the /var/cache folder from the project folder.
    • Disable https (ssl) in MySQL. Open phpmyadmin locally. Find the “cscart_settings_objects” table. Set “secure_storefront” to “none” and “secure_admin” to “N”.
    • Make store configuration. Change the domain and database parameters in the config.local.php file or create a local_conf.php file with local configuration.
  5. Open your store in the browser.

If you have any difficulties, contact our support team.


---
If you have a problem, need assistance with tweaks or a free consultation, if you just want to discuss your project with experts and estimate the outcome, if you're looking for a solution that reinforces your online business, we will help. Email us.