Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Upgrading database to new directory.

Upgrading database to new directory.

Views: 1,028

Results 1 to 6 of 6
31 Aug 2011, 9:47 PM
#1
lightup avatar

lightup

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Upgrading database to new directory.

Hi,

I am getting all my information and stuff together ready for an upgrade of 1.3.8a to 1.3.9h.

I have two one questions:

Firstly, on the upgrade guide it states that you should "Upload the files from your modified "new version" (created in step 2) to your server, into an alternate folder, perhaps called "/store_new"."

I currently have my shop situated in the directory "shop". If I were to install the "new" files into my upmost directory and then run the upgrade, would my shop now be situated in https://www.myshop.com as apposed to https://www.myshop.com/shop? Or do I have to upload the "new" files into a different directory.

Secondly, as stupid as this may sound, once the new store database and files have all been uploaded and upgraded correctly, I assume it is fine to completely delete all of the old files via ftp?

Thank you in advance for any help.

31 Aug 2011, 10:44 PM
#2
eentje avatar

eentje

Zen Follower

Join Date:
Jan 2009
Location:
The Netherlands/Germany
Posts:
144
Plugin Contributions:
4

Re: Upgrading database to new directory.

What you want to do is create a new directory on your server called shop_new for example and upload the new zen cart there... then you make all the changes you need on that shop (accessible through https://www.yourdomain.tld/shop_new/).

Once you are done with that you could either go and move your old store from the directory store to a new directory store_old en then move your files from directory shop_new to directory store then do the fix_cache_key (search for it in the free software add on section) and you are good to go... or change the link to your store from https://www.yourdomain.tld/store to https://www.yourdomain.tld/shop_new

31 Aug 2011, 10:59 PM
#3
lightup avatar

lightup

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: Upgrading database to new directory.

eentje:

What you want to do is create a new directory on your server called shop_new for example and upload the new zen cart there... then you make all the changes you need on that shop (accessible through https://www.yourdomain.tld/shop_new/).

Once you are done with that you could either go and move your old store from the directory store to a new directory store_old en then move your files from directory shop_new to directory store then do the fix_cache_key (search for it in the free software add on section) and you are good to go... or change the link to your store from https://www.yourdomain.tld/store to https://www.yourdomain.tld/shop_new

Thanks for the reply. That makes sense. If I wanted the new store not situated in a directory but on the highest directory i.e. https://www.mydomain.com as apposed to https://www.mydomain.com/store can I do that? Also why would you leave the old store files on the server out of interest?

1 Sep 2011, 9:46 AM
#4
eentje avatar

eentje

Zen Follower

Join Date:
Jan 2009
Location:
The Netherlands/Germany
Posts:
144
Plugin Contributions:
4

Re: Upgrading database to new directory.

you could move the files from store_new to the root. That is what most of us do. :)

I mostly keep the old files just for reference and delete them after it is sure that the new shop runs perfectly. (you never know where there might be a corrupt file or something and with the old files still on the server you can quickly have the old shop up and running)

1 Sep 2011, 1:40 PM
#5
lightup avatar

lightup

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Re: Upgrading database to new directory.

eentje:

you could move the files from store_new to the root. That is what most of us do. :)

I mostly keep the old files just for reference and delete them after it is sure that the new shop runs perfectly. (you never know where there might be a corrupt file or something and with the old files still on the server you can quickly have the old shop up and running)

Brilliant, what i shall do then is upload the new store files to the root, and ill make a back up of the old files and remove once upgrade is complete. Will i still have to run the fix_cache_key add on? Not entirely sure what it does.

Thank you.

1 Sep 2011, 3:39 PM
#6
eentje avatar

eentje

Zen Follower

Join Date:
Jan 2009
Location:
The Netherlands/Germany
Posts:
144
Plugin Contributions:
4

Re: Upgrading database to new directory.

Yes you still need to that and alter both configure files to the new situation.