Moving cscart from server to localhost

Hello



Has anyone tried installing cscart locally and then moving their site from the server where it is hosted to the local machine?

My reason for doing this is to help me understand how to cope with changes when I upgrade my site.



This way I can upgrade locally and work out all problems without disrupting my live site. Then apply all I learned to my live site upgrade.



If you have done this PLEASE try to give me the procedure as I have tried several times and several ways and things UNSUCCESSFULLY so far. ( ex. editing config.local.php )



If I or WE can work this out I feel it could be beneficial to all CSCART USERS in the future when upgrading until the developers of cscart give us an easier upgrade path.



Any and All help will be appreciated.

Luziano

I move my site back and forth all the time. I especially do it when there is an upgrade.



Basically I do:



download all the files



move them to my xampp/htdocs folder within their own directory, so for me it’s saltwatertogo



export my database from my live site using phpmyadmin



use xampp and import the database with phpmyadmin



edit config.local.php and .htaccess



And I’m off to the races.



Now if it is your first time you might have to create a database on your localhost, but that would be the only difference.



Doing this means that you don’t need to go through the install procedure on your localhost.



You end up having an almost exact copy of your live site with the only differences being your config.local.php and your .htaccess



Hope that clears some things up.



Brandon

  1. download [URL]http://www.apachefriends.org/en/xampp.html[/URL] and install XAMPP on your local computer. If you use Windows OS, do download the “Lite” version.


  2. compress your CS-Cart files on your server and download to your PC


  3. export your MySQL database to your PC


  4. start Apache server and MySQL though XAMPP Control Panel and in XAMPP click on “Admin” button in the Apache line. You should see in your browser address bar something like this: [URL]http://localhost/xampp/[/URL]


  5. create a subfolder inside of the htdocs folder in C:\xampplite\htdocs[B][COLOR=Red]newfolder [/COLOR][/B](C might be different, deppends on where is your XAMPP installation.


  6. extract your server backup into your new folder


  7. create a new database through XAMPP Control Panel > Apache > Admin > phpMyAdmin and import your CS-Cart database



    8 ) edit your config.local.php file



    If you are done and Apache / MySQL are running, you will be able to access all sites and documets inside of the /htdocs/ folder through your web browser.



    Example URL: [URL]http://localhost/mycscart_on_local_machine/[/URL]



    IMPORTANT: You have to use as main URL [URL]http://localhost/[/URL]… not [URL]http://localhost/[/URL][COLOR=Red]xampp/…[/COLOR]



    That’s it.

1) download http://www.apachefriends.org/en/xampp.html and install XAMPP on your local computer. If you use Windows OS, do download the "Lite" version.

2) compress your CS-Cart files on your server and download to your PC

3) export your MySQL database to your PC

4) start Apache server and MySQL though XAMPP Control Panel and in XAMPP click on "Admin" button in the Apache line. You should see in your browser address bar something like this: http://localhost/xampp/

5) create a subfolder inside of the htdocs folder in C:\xampplite\htdocs\[B]newfolder [/B](C might be different, deppends on where is your XAMPP installation.

6) extract your server backup into your new folder

7) create a new database through XAMPP Control Panel > Apache > Admin > phpMyAdmin and import your CS-Cart database

8 ) edit your config.local.php file

If you are done and Apache / MySQL are running, you will be able to access all sites and documets inside of the /htdocs/ folder through your web browser.

Example URL: http://localhost/mycscart_on_local_machine/

IMPORTANT: You have to use as main URL http://localhost/.... not http://localhost/xampp/...

That's it.

Hi it is possible to explain the changes need to place in the config.local.php. If you can give a code example. I try to make all above and i get the following error.

Tygh\Exceptions\AException

Message

No storefronts defined for this domain

Error at

app/functions/fn.init.php, line: 948