Phil Soth:
So far, I have exported my old database to the new database
Wrong! (It can be done this way, but it isn't what the instructions say).
Phil Soth:
and copied all my public_html files over via ftp.
Hopefully you did this into a different directory/folder than the original files ?
Phil Soth:
Well, as well know, that doesn't work.
We don't know any such thing.
Phil Soth:
At the very least, all the links to the root refer to "public_html"
and me new database uses "htdocs" as the root.
With rare exceptions, the only 'links' of serious consideration are those found in the 2 configure.php files.
Phil Soth:
and me new database uses "htdocs" as the root.
Sorry, but no it doesn't. The database doesn't have a 'root' in the sense that you are implying. The database is in an inaccessible (to you) place on the server. All you need to know about it is the name of the server that it is hosted (usually 'localhost' or '127.0.0.1') and the name of the database.
Phil Soth:
So back to the Tutorial/FAQ's, where I found a set of instructions for "I want to move my Zen Cart installation to another host or a different server." If I understand the instructions correctly, I want to:
- Create a new database on the new host (my new account)
- Install a fresh new install of v151 in that new database
- Test it, and when it is working, then
- Make a backup of the new configure.php files and save them locally
- Make a backup of the OLD database and Store files
- Upload the OLD Database and Store files over the NEW Database and Store files (from 2-3 above)
- ...is step 5 on the tutorial
- ...is step 6 on the tutorial
- ...is step 7 on the tutorial
These appear to be correct/valid instructions, but note that you shouldn't have "exported the old database to the new database" until step#6.
The way I'm reading your comments, you actually did this in step#2.
Phil Soth:
Here are my primary questions:
a. The naming convention for the root directory in the new account is "htdocs" not "public_html" Will that be accommodated when I do the fresh install of v151 in the NEW database?
Although I'm cringing at your terminology because you don't actually 'install into a database', the new root directory name will be added to the 2 configure.php files (where it is needed).
In fact it is this aspect of the upgrade that it is recommended to do a 'fresh install'. If you don't do a fresh install the you'll need to manually change the configure.php files to reflect the change in the file path, and this is one area where many people seem to get things wrong. A 'fresh install' mitigates this possibility by setting up the correct paths for the new install.
Phil Soth:
b. I want to test the NEW Database and Store prior to going live with it. At what point in the instructions above do I complete the install,
This is step#3 in the instructions above, but you really will be testing a new store (preferably with the example products).
This will not be a copy of your original store in any way. All being well you should now be able to access both the new and the old stores, ableit with a slightly different URL.
eg: if your old store was 'http://mystore.com" the new store will be "http://mystore.com/htdocs"
Don't worry if the new URL isn't to your liking. The important thing here is that you should now have two functioning stores.
Phil Soth:
yet am able to stay live with the original account?
I'm a little confused here. You never said anything about having a new account. You only mentioned that the account was upgraded, which implies the account itself hasn't changed, only options/features associated with the account.
Phil Soth:
And what do I don't do to allow that to happen?
You DO need to follow the instructions. You don't skip ahead and "export the old database to the new database" until you get to step#6.
Phil Soth:
c. Once I have the NEW database working in test mode, my plan is to go live with it,
You are getting ahead of yourself again. The new site (and database) will have no customisations, it will be using the 'classic' template, and the database will contain the example/demo products. In other words, it isn't anywhere near ready to 'go live'
At this point you are only on step#3.
In order to go live with the template, products, etc from your old database you still need to complete steps #4 through to #6.
Phil Soth:
and delete the OLD database, in this case, account.
There's that old/new 'account' again. If you really do have an 'old account' and a 'new account' you will also have two cPanel logins (assuming your host uses cPanel). Is this really the case?
Phil Soth:
d. Once I am successfully live with v151 in the NEW database, I plan to create another NEW databse, create a demo directory under the root and install v154 there, where I can fiddle with it, following the upgrade instructions.
This seems a bit silly and pointless, with the only benefit being that it'll give you a bit more experience as to how to upgrade and/or move to a different server. I'd suggest you go directly to V1.5.4, and if you still want another site to 'fiddle with' it is then just a matter of following the migration/move instructions so as to avoid messing around with an unnecessary upgrade.
Phil Soth:
Please clarify any difficulty I may have with "htdocs" versus "public_html",
These's not much difference between these two folder names other than 'htdocs' is what Windows servers call the DocumentRoot folder and 'public_html' is what every other system calls it (by default).
As a general rule you'll not be able to place website files (and have them work) unless they are placed in these pre-defined folders, and you can't rename them and expect things to work either.
After you've complete step#6 you should end up with two near identical sites, the original, and the V1.5.x upgraded version.
Both sites should be fully functional, again, using a slightly different URL. It is only that this time you should consider deleting/removing the old site, and if you then what to make the new site accessible using the old URL I would suggest you come back here to seek further advice, as there are several ways of doing this, and the best way will be somewhat dependent of where the files (both old and new) are actually located. If when asking you don't provide this important information the first thing we'll do is to ask you for them. :)
Phil Soth:
and please review my plan for reasonableness. Of course, any and all helpful critique will be gratefully appreciated.
You asked. I've given. :-)
Cheers
RodG.
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.