Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2006
    Posts
    87
    Plugin Contributions
    0

    Default Folder dilemma - original store in root, new upgraded shop in subfolde

    Hi
    So I'm in the last stages of my upgrade and I have my upgraded shop in a subdirectory on the live server having the finishing touches put to it. The live store is in the root directory of the site. Can anyone advise me on whether I should keep my new store in the subdirectory and just remove the old store or whether I should remove the existing store files and put the new store into the root?

    If I keep it in a subdirectory, how does someone visiting http://www.mystore.com/ get sent to http://www.mystore.com/subdirectory? Do I have to use htaccess?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Quote Originally Posted by RoPey View Post
    Hi
    So I'm in the last stages of my upgrade and I have my upgraded shop in a subdirectory on the live server having the finishing touches put to it. The live store is in the root directory of the site. Can anyone advise me on whether I should keep my new store in the subdirectory and just remove the old store or whether I should remove the existing store files and put the new store into the root?

    If I keep it in a subdirectory, how does someone visiting http://www.mystore.com/ get sent to http://www.mystore.com/subdirectory? Do I have to use htaccess?

    Thanks
    First I would backup both file systems....
    Move the old file system from the root to a (different) subdirectory
    Then move the new filesystem into the root

    Keep the old files in the subdirectory until you are sure the new file system in the root works.

    This of course assumes that the new file system has a complete working up to date database
    If not you would have to copy the old database to the new and then run zc_install to upgrade the database
    or
    you edit the 2 new configure.php files to point to the old database and also run zc_install to upgrade.

  3. #3
    Join Date
    Oct 2006
    Posts
    87
    Plugin Contributions
    0

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Thank you Gilby, that was what I thought was probably best.

    The new store has already got an upgraded version of the database and the current store is offline while we upgrade so that there are no changes.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    This is worth a read, to make things simpler for you: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    and to add to this.. I would KEEP the test shop in place post upgrade so that you can use it as a place to stage/test new add-on installs and future upgrades..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Oct 2006
    Posts
    87
    Plugin Contributions
    0

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Quote Originally Posted by DivaVocals View Post
    and to add to this.. I would KEEP the test shop in place post upgrade so that you can use it as a place to stage/test new add-on installs and future upgrades..
    Excellent advice DivaVocals and also thanks to Dr Byte for the link. I'm delighted to say that the transition went smoothly and I have left the sub folder in place, password protected and disallowed to search engines. One question though - is there any reason why I should not leave it attached to the live database?

    Thanks again for all the good advice

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Quote Originally Posted by DrByte View Post
    This is worth a read, to make things simpler for you: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    Nice blog entry, pretty much identical to my own upgrade technique.

    I loved the tip:
    TIP: You *could* do a "trial run" of this whole upgrade process by making ANOTHER copy of your live site and doing
    this upgrade to that site. Then you'll have either a checklist of additional things you'd missed, or you'll have simply the peace-of-mind of knowing that your live upgrade will go smoothly.
    In fact, this is what I always do!


    How come it only seems to be developers that make backups of backups of backups? :)

    Noobs are so innocently trusting aren't they ;)

    Cheers
    Rod.
    Last edited by RodG; 23 Apr 2013 at 01:54 PM.

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Quote Originally Posted by RoPey View Post
    Excellent advice DivaVocals and also thanks to Dr Byte for the link. I'm delighted to say that the transition went smoothly and I have left the sub folder in place, password protected and disallowed to search engines. One question though - is there any reason why I should not leave it attached to the live database?
    Yes. If you use this site for further testing/development you DON'T want it connected to your live database.

    Cheers
    Rod

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Quote Originally Posted by RoPey View Post
    Excellent advice DivaVocals and also thanks to Dr Byte for the link. I'm delighted to say that the transition went smoothly and I have left the sub folder in place, password protected and disallowed to search engines. One question though - is there any reason why I should not leave it attached to the live database?

    Thanks again for all the good advice
    Quote Originally Posted by RodG View Post
    Yes. If you use this site for further testing/development you DON'T want it connected to your live database.

    Cheers
    Rod
    Took the words RIGHT out of my mouth Rod!!!

    and the reason is this, some add-ons include SQL files which modify the DB. The purpose of a dev/staging site is to TEST upgrades, modifications, etc BEFORE "going live". So you want these changes to take place in it's OWN database before moving these DB changes to your live site.. and as Rod has said you need to backup your test site (files AND the DB) before applying changes to it so that you can roll back when things go horribly wrong..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Oct 2006
    Posts
    87
    Plugin Contributions
    0

    Default Re: Folder dilemma - original store in root, new upgraded shop in subfolde

    Fair enough - hadn't really thought that through when I typed it. Don't worry about the backing up. When I upgrade anything I have a checklist next to me. It is liberally interspersed with - backup again, backup again, backup again.

    Thanks again to all.

 

 

Similar Threads

  1. Replies: 23
    Last Post: 8 Oct 2014, 05:32 AM
  2. Move store from folder to root
    By joem83 in forum General Questions
    Replies: 7
    Last Post: 20 Aug 2012, 07:27 PM
  3. v139h question about moving my store from /Shop/ to root
    By devyani in forum General Questions
    Replies: 4
    Last Post: 26 Jun 2012, 06:12 PM
  4. Moving a store to the root directory from a sub-folder
    By Hell Guapo in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2011, 05:51 PM
  5. moving old store to new upgraded folder
    By psychosis in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 14 Sep 2011, 10:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR