Forums / Upgrading from 1.3.x to 1.3.9 / Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Locked

Started by imfsub12 on 13 Feb 2011, 1:19 AM · Views: 3,798

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
13 Feb 2011, 1:19 AM
#1
imfsub12 avatar

imfsub12

Zen Follower

Join Date:
Aug 2008
Location:
Halifax, NS
Posts:
274
Plugin Contributions:
0

Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Ok after reading all the forms they tell us to shut down the store front when we get the update working..

But this update took me some time to get working.. About 6-7 hours after applying all the new mods and other stuff.. (:cry:)

So after TESTING out the new 1.3.9 a bit.. i think it will work for us..

But now i see that the client has some users signed up with new accounts and maybe a purchase or 2 ...

So how to I merge the LIVE DB (1.3.8) with the New 1.3.9...

WIll this be a nightmare.. or is there a simple way.. to migrate the old data over.. as I don't want to do the whole db as i have implemented new Updates for Canada post, lightbox, google, revocer cart, email archive, Ceon CC.. And that might mess up the new DB..

Just don't want to wait to long to get the new site up..

13 Feb 2011, 9:03 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Naturally you don't want to lose any data from your live site.

That's why the BEST next step is to actually upgrade your live site directly, now that you've got all the kinks of your upgrade sorted out:

a) now, set your live store to down-for-maintenance
b) RE-DO the entire upgrade on your live site (which will be very easy, since you've already done it all once, sorted out any conflicts, and have made good notes about any settings changes so you can do them all in a couple minutes again on the new site):

  • i) upload the new files to the old site
  • ii) delete obsolete files from the old site
  • iii) upload the zc_install folder for the new version to the old site
  • iv) run zc_install to update the live site database
  • v) delete the zc_install folder
  • vi) do any admin configuration/settings updates as needed
    c) take the live site back online again by turning off maintenance mode
    d) delete your TEST site, since it's no longer needed (unless you want to keep it for additional testing activity)

You WILL NOT use your TEST site as the LIVE site. It was for TESTING only.

Naturally, this whole process is easiest if you've already got a good clean reliable set of files on your new test site, and have made good notes about any special configuration changes or SQL Patches etc that were required when you were testing and readying the test site to be sure it works as desired.
Doing it this way means your live store will only be in maintenance mode for a brief period of time.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2011, 12:21 AM
#3
donnyb avatar

donnyb

New Zenner

Join Date:
Apr 2010
Posts:
32
Plugin Contributions:
0

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Just the thread/info I have been looking for. I did not build my current site properly, due to not quite understanding it all and now that I am attempting to upgrade, it has caught up with me. The only add on is the "flexible_product_listing" which I'll install on the new site.

This has made me a nervous wreck trying to figure it out and try not to mess it up.

My site is in the root, I am planning on installing my test site at mydomain.com/store, once I get the testing done, would I be better off deleting my old site instead of overwriting it? Just uploading the same set of "original" files that I uploaded to my test site, doing the regular "install" as it were a completely new site, and doing the data base upgrade? I have noticed where some mistakes where made in uploading templates.

Is it better to have your store not in the root level?

Does it make it easier to update/upgrade?

Thanks
donnyb

23 Feb 2011, 7:09 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

If you re-read what I posted above, I don't really recommend using the "test" site as an eventual "live" site.
Not that it can't be done, but it's usually better saved for when you've got a thorough understanding of the files and database and websites and servers.

That said, if you have really good backups of your database, you can try it if you like.

As for having your store at the root level or in a folder, it really makes no difference, because you never need to move your store between folders just to upgrade.

A "test" site is a test site. A "live" site is a live site. Never mix them up. Never "trade" places.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2011, 7:12 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

donnyb:

once I get the testing done, would I be better off deleting my old site instead of overwriting it?What do you mean by "deleting"?
donnyb:

Just uploading the same set of "original" files that I uploaded to my test site, doing the regular "install" as it were a completely new site, and doing the data base upgrade?If you delete the obsolete files from the existing live site, and upload the new customized upgraded files from the test site onto the live site, and run the new zc_install on the live site to upgrade the live database, then you're basically doing a similar process to what I described to the other person earlier. Follow what I'd already posted.

Shortcuts just bring you back asking for help to fix what you skipped or did differently.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Feb 2011, 4:15 PM
#6
donnyb avatar

donnyb

New Zenner

Join Date:
Apr 2010
Posts:
32
Plugin Contributions:
0

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

DrByte:

What do you mean by "deleting"?

DrByte, I did not know if after I tested my new site and backed up the new site and my live site, if I would be better off deleting my entire live site from the server before I uploaded my new and improved site.

Do you need to put your "renamed admin" folder back to "admin" before the upgrade?

That said, I will follow your advice from the above post and thank you for your help, these forum are a real asset to those of us who are not quite sure of what we are doing.

Thanks again
donnyb

23 Feb 2011, 10:43 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

Some people like to do a complete delete of the files on the live site before uploading the new ones. It certainly makes it easier to ensure there's no leftover old stuff there. But on large sites it can take a very long time to re-load the images folders and other supporting folders. It also changes the date/time stamp on all the files to the date of the new upload. Sometimes that's a desirable effect. Sometimes not. It kinda depends on your own preferences.

As for renaming the admin folder, if you're using an automated compare tool to compare all the PHP files, it'll want matching foldernames, so in that case it's good to make sure both folders match. Doesn't matter which name you give them, as long as they're the same.
But, as for uploading to the server and running the zc_install app to upgrade the database, it doesn't care about the admin foldername to just upgrade the database data.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Feb 2011, 2:59 AM
#8
donnyb avatar

donnyb

New Zenner

Join Date:
Apr 2010
Posts:
32
Plugin Contributions:
0

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

OK and thanks for the help, as I am still trying to learn and figure this all out. Now I just need to pick a time to do this.

donnyb

27 Feb 2011, 4:37 AM
#9
donnyb avatar

donnyb

New Zenner

Join Date:
Apr 2010
Posts:
32
Plugin Contributions:
0

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

YES!! I finally had success updating my site!!

THANK YOU DrByte, without your advice, I'd be like the last time I tried to update, I spent 8 1/2 hours and ended up putting my old site back up.

My site is relatively small, it only took me 2 hours start to finish.

Now my next task is to move hosts, hope that goes as smoothly as this upgrade did.

Thanks again for your advice/help DrByte.

donnyb

27 Feb 2011, 5:11 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

donnyb:

Now my next task is to move hosts, hope that goes as smoothly as this upgrade did.
Glad you got the upgrade working.
Here's the tutorial on moving hosts: https://www.zen-cart.com/tutorials/index.php?article=100

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Mar 2011, 12:05 AM
#11
donnyb avatar

donnyb

New Zenner

Join Date:
Apr 2010
Posts:
32
Plugin Contributions:
0

Re: Upgarde to 1.3.9 on test site - Live site still up with 1.3.8 DB but with new DATA..

DrByte:

Glad you got the upgrade working.
Here's the tutorial on moving hosts: https://www.zen-cart.com/tutorials/index.php?article=100

Thanks again DrByte. I now have an up to date version of Zen Cart running on a new host with zero problems/errors encountered. The DNS change only took about one hour to take effect.

Thank you
donnyb