Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to Move Customized Store to a New Server?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-23-2004, 08:12 AM
 
brad@fresh-n-tasty.com brad@fresh-n-tasty.com is offline
 

Member
  
Join Date: Jan 2004
Posts: 11
 

Default 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?
__________________
fnt-brad
x-cart-3.4.14-gold (linux)
Reply With Quote
  #2  
Old 07-23-2004, 08:19 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Are there any type of control panel on the servers?
Are these shared hosting servers or dedicated?
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #3  
Old 07-23-2004, 09:57 AM
 
brad@fresh-n-tasty.com brad@fresh-n-tasty.com is offline
 

Member
  
Join Date: Jan 2004
Posts: 11
 

Default

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.
__________________
fnt-brad
x-cart-3.4.14-gold (linux)
Reply With Quote
  #4  
Old 07-23-2004, 10:25 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

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.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #5  
Old 07-23-2004, 02:35 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Account migration from the WHM (CPanel) works awesome. I didn't believe it would work that good, but it does.
Reply With Quote
  #6  
Old 07-23-2004, 03:04 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

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
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #7  
Old 07-25-2004, 08:24 PM
 
brad@fresh-n-tasty.com brad@fresh-n-tasty.com is offline
 

Member
  
Join Date: Jan 2004
Posts: 11
 

Default

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?
__________________
fnt-brad
x-cart-3.4.14-gold (linux)
Reply With Quote
  #8  
Old 07-25-2004, 08:42 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Move files, copy database, update config.php.

That's it....
Reply With Quote
  #9  
Old 07-26-2004, 08:36 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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.
Reply With Quote
  #10  
Old 07-30-2004, 06:35 AM
 
brad@fresh-n-tasty.com brad@fresh-n-tasty.com is offline
 

Member
  
Join Date: Jan 2004
Posts: 11
 

Default

Thanks. I'll give it a try.
__________________
fnt-brad
x-cart-3.4.14-gold (linux)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:16 PM.

   

 
X-Cart forums © 2001-2020