• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

CS-Cart Shopping Cart Webiste

How to Move or Copy CS-Cart

March 29, 2013 by Pat Fortino

I recently copied a CS-Cart installation and ran into an SSL problem. Because I installed the copy on my development server without an SSL certificate, I kept getting an SSL error when I tried to log into CS-Cart Admin on new site. Below is a more detailed explanation of the situation and the fix, but the bottom line is this: If you copy a CS-Cart installation to another server / domain that does not have SSL installed, make sure you delete all the folders and files in /var/cache. In fact, it’s probably a good idea to delete the cache even if you do have SSL installed on the new server.

Below are the steps for copying and moving a CS-Cart installation from one server to another. My situation was this: I was creating a new CS-Cart website. The new site would use almost all of the same information, settings, and template customizations as the existing site. As a result, after buying the CS-Cart license for the new site, I decided that instead of installing a new copy of CS-Cart, I would upgrade the existing CS-Cart installation to the latest version and then copy it to my development server where I would build the new CS-Cart site.

Note: In the site I copied, CS-Cart was installed in the web root; same for the new site.

  1. Create a .zip file of all the CS-Cart files. If you have cPanel, you can use the File Manager to compress all the files into a zip or tar.gz file.
  2. Use FTP to transfer the zip file to the new server.
  3. Uncompress the zip file in the web root of the new server.
  4. On the new web server, create a new database for CS-Cart.
  5. Open /config.local.php and change the database connection settings to match your new database .
    /*
     * Database connection options
     */
    $config['db_host'] = 'localhost';
    $config['db_name'] = 'database-name';
    $config['db_user'] = 'datebase-user';
    $config['db_password'] = 'password';
    $config['db_type'] = 'mysqli';
  6. Change the http and https host.
    Note: Because this installation is installed in root, there is no need to fill in $config[‘http_path] = ”; or $config[‘https_path’] = ”;
    If your installation is in a sub directory, then you need to fill in the http and https path.

    // Host and directory where software is installed on no-secure server
    $config['http_host'] = 'yoursite.com';
    $config['http_path'] = '';
    // Host and directory where software is installed on secure server
    $config['https_host'] = 'yoursite.com';
    $config['https_path'] = '';
  7. For security reasons, you should change the name of the index.php for the admin area of the site.
    Note: This line will most likely already have a different name than index.php. You can change it to whatever you want.

    $config['admin_index'] = 'somesecretfile2957.php';
  8. Save config.local.php and upload to the new web server root.
  9. In your new web root, find the existing admin index.php file. It will have the same name as the original $config[‘admin_index’] = ‘oldsomesecretfile2957.php’;
  10. Change the admin file name to match what you entered in $config[‘admin_index’] =.
    Pages: Page 1 Page 2

Tagged With: cs cart, Comments are closed. If you have information to share, contact me here.

Previous Post: « VNC Viewer for Chrome
Next Post: Review RSForm!Pro for Joomla »

Related

Primary Sidebar

Blog Categories

Call Today

Get a Free Quote

303-907-6133

Subscribe to News

News about WordPress, WooCommerce, & Technology

What’s New

  • WPForms Not Sending Notifications
  • Add Terms and Conditions WooCommerce
  • Fix WordPress AMP Validation Errors
  • Use the Classic Editor with Gutenberg Block Editor
  • Add a Message at Top or Bottom of WooCommerce Checkout Page
  • How to Link to a PDF in WordPress

Find Us On…

  • Facebook
  • LinkedIn
  • RSS

Call 303-907-6133 Email

© 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top