Move kartris system from one server to another


https://forum.kartris.com/Topic2585.aspx
Print Topic | Close Window

By adnansattar00 - Tue 19 Nov 2013
Hi

I need to move my kartris system from 1 server to another server, ideally what i want 100% same configuration on new server like currency+data, so i expect to do something like

1: copy my kartris folder (pointed in iis) and db to new server
2: do iis settings in new server and as well as attach that db
3: do db settings in web.config,

Is that all or im wrong?

if that is not work able then should i do according to section

2.4.4. Forcing the install routine to run again

in user guide (http://userguide.kartris.com/Default.aspx?headID=21)
?
By Mart - Tue 19 Nov 2013
The process is pretty much as you have described.

Moving the database can be tricky. If you have a virtual/dedicated server the best way is create a db backup on old server, move this to new server and restore.

If you're using shared webhosting you probably have more restricted access to database. There may be an option to restore a backup, but often there is not. In this case you might want to use the data tool - setup a new client kartris database using the database creation scripts (or installing a new copy of kartris) and then use the data tool to import your data from old database.

Also when you've moved sites and do get the new one up and running remember to check that emailing from the site works (sometimes mail settings can vary on diffferent machines, especially if you have a specific IP address in your mailserver settings)
By Paul - Tue 19 Nov 2013
Another issue that might come up if you're moving between servers is SQL version. You can generally install a backup from an older version on a newer one. But not the other way around. And SQL 2008 R2 databases won't install on SQL 2008 for this reason (I spent a couple of hours trying for a customer a while back until I finally figured out the problem).

Your account passwords for admin accounts and users on the front end will remain the same and work fine as long as your web.config file has the same hashsalt value on the new site as on the old one (which if you copy everything across, it should do).
By adnansattar00 - Wed 20 Nov 2013
Thanks Paul and Mart, i will also check email settings. Let me explain a bit more 1 point I missed,

1: On old server and new server everything is same except url, (on old it was for testing)
2: I have full remote desktop access, so configured in IIS and db, all ok and connection string in web.config in new server.
3: On browsing new site (with new url) it was redirecting to old site. Angry
4: then I did 2 changes in web.config, a) put bad db name in connection string, b) commented globalization tag. (according to section 2.4.4. Forcing the install routine to run again, in user guide)
5: Then on browsing new site i got install routine wizard, completed this, all ok, just have to do currency settings. Now new site seems fine with new url and old data.

Is that all i needed to do in this case?
By Paul - Wed 20 Nov 2013
The site redirected because there is a config setting which holds the site's URL:

general.webshopURL

You can have multiple URLs mapped to a site within IIS, but the site will always redirect to the preferred one set up in this config setting if you access the site on a different URL.

The back end won't do this however (this is by design). It will work with any URL that can reach it. So you can access the back end like this:

http://www.newsiteurl.xyz/admin/

Once inside there, you can update the general.webshopurl to http://www.newsiteurl.xyz/

Now, the front end should work with http://www.newsiteurl.xyz/, without redirecting to the old URL.

You may need to clear your browser cache if it doesnt as browsers sometimes do seem to cache the redirection, so even after you change the settings, hitting the front page still redirects.
By adnansattar00 - Thu 21 Nov 2013
Thanks Paul, everything is fine now. Smile