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.
- 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.
- Use FTP to transfer the zip file to the new server.
- Uncompress the zip file in the web root of the new server.
- On the new web server, create a new database for CS-Cart.
- 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';
- 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'] = '';
- 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';
- Save config.local.php and upload to the new web server root.
- 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’;
- Change the admin file name to match what you entered in $config[‘admin_index’] =.
Pages: Page 1 Page 2