X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to Move Customized Store to a New Server? (https://forum.x-cart.com/showthread.php?t=8597)

brad@fresh-n-tasty.com 07-23-2004 08:12 AM

How to Move Customized Store to a New Server?
 
I have had our store customized by a developer and would like to move it to a new server. Many of the files have been customized, as well as the database (added some new tables).

Does anyone have a good technique for migrating all of the changes to a new location? Should I do a fresh install, then move everything? Or should I just export/import the DB, then copy and paste the files, and make changes to config.php? (I am running Linux).

Also, how do I know what files are necessary vs. which ones I can get rid of? Is there documentation that discusses how the files all interact?

Emerson 07-23-2004 08:19 AM

Are there any type of control panel on the servers?
Are these shared hosting servers or dedicated?

brad@fresh-n-tasty.com 07-23-2004 09:57 AM

There is a control panel, and I have SSH/command line access. It is a 'virtual dedicated server', so it behaves as if it is dedicated.

Emerson 07-23-2004 10:25 AM

Is it cpanel?
If it is, you can download a back up of you site and upload it to the new server.
Additionally, if you have access to WHM, you can transfer accounts in between servers.

adpboss 07-23-2004 02:35 PM

Account migration from the WHM (CPanel) works awesome. I didn't believe it would work that good, but it does.

Emerson 07-23-2004 03:04 PM

Quote:

Originally Posted by adpboss
Account migration from the WHM (CPanel) works awesome. I didn't believe it would work that good, but it does.


Yes, it is a HUGE time saver :!:

brad@fresh-n-tasty.com 07-25-2004 08:24 PM

Thanks for the responses...but my question is geared more towards the specifics of x-cart:

When moving a development instance of xcart to a test or production server, do you:

a. install a fresh copy of x-cart, then move the modified files?
or...
b. just copy and paste the entire development instance of x-cart?
or...
c. it doesn't matter, either one will work.
or...
d. something else?

adpboss 07-25-2004 08:42 PM

Move files, copy database, update config.php.

That's it....

Jon 07-26-2004 08:36 AM

Don't know what you mean by copying files, but it's best to tar the files with permissions from the ssh shell prompt.

tar cfvpz backupname.tar.gz *

This will create a file named backupname.tar.gz which you can download and upload to your new server. Move it to the directory, and then in ssh:

tar xfvpz backuname.tar.gz

That will unpack all the new files. If necessary, you may need to change the file ownerships. For example, if your files were domaincom.psacln before, and now they are domain2com.psacln, you'll need to change ownership with: chown -R domain2com.psacln

Then backup and restore your mysql database.

Edit your config.php

And everything should be good.

Don't do a fresh install unless your upgrading your x-cart, otherwise you'll have to reimplement all of the customizations for no reason.

brad@fresh-n-tasty.com 07-30-2004 06:35 AM

Thanks. I'll give it a try.


All times are GMT -8. The time now is 09:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.