Re: Moved To New Server, store Not Working
I have a resellers account for testing on Hostgator and haven't had issues with moving sites in and out of there. I prefer a different method then what the good Dr. suggests. I bring the whole site, files, db over, and edit the config files. About 3 minutes after the ftp is done the site is running. So far on hostgators servers I have found that the path is going to be (if the site is in public_html)
Code:
define('DIR_FS_CATALOG', '/home/YOURUSERNAME/public_html/');
Though I have migrated hundreds of zen carts around so it might just seem easier too me.
Re: Moved To New Server, store Not Working
It occurs too me that I should also note that the db name, db user, and the password might need some adjustment. I tend to create the empty db named the same as it was on the old server so I only have to adjust the first part to have/change the username_dbname depending on how it was setup on the old server. most cases I don't have to change db_server, but if I do, hostgator uses define('DB_SERVER', 'localhost');
Re: Moved To New Server, store Not Working
Quote:
Originally Posted by
DK_Scully
Okay, I'm baffled. I started over completely from scratch, got
www.book-oasis.com up and running, configured, etc. Copied over all the files EXCEPT the two configure.php files to the new server...
And none of the modifications are showing up.
After you did this did you import the old database?
Quote:
Originally Posted by
DK_Scully
My Admin / Tools / Template section shows that Sheffield Blue has been uploaded, but it's not showing as active.
This implies that you aren't using the contents from the old database. I suspect that if you now try to enable the Sheffield Blue template it will probably work.
Quote:
Originally Posted by
DK_Scully
None of the categories I made on the old site are showing up, either.
My Admin / Tools / Template section shows that Sheffield Blue has been uploaded, but it's not showing as active.
As above, this implies that you are using the database from the new installation and that you haven't imported the old data.
Quote:
Originally Posted by
DK_Scully
I've followed all the instructions...why aren't the mods I made to my old site showing up?
Don't really know. Need more info.
I do however believe that your issues are DB related and that you are somehow getting a bit confused over this.
Lets try a slightly different approach.
Option#1
You can do a fresh/new install with a newly created database with its own login details, etc. When this is working you can then *import* the data from the *original* database and then re-run the install script again to *update* the database to conform to the new database format.
Option#2.
You can do a fresh/new install using the *existing* database, and you'll only need to run the script to update the database to conform to the new format.
Option#3
You can do a fresh/new install with a newly created database with its own login details, etc. When this is working you can then modify the two configure.php files so that it has the *old* database details. As with the other options, you'll then need to run the install scripts again so that the 'old' (now current) database gets the updates to conform to the new format.
I think those are the only three possibilities. Choose one and one only.
Note that in all cases, there will be a need to click the button in the installation script to 'Update the Database'. The only time this *won't* be needed is during the first stage of option#1 (before you import the old data).
Hopefully one of these options/methods will 'gel' with what you have been doing and you'll be able to figure out where you've gone wrong.
If you have a blank page issue (at any time) it will be a php file issue. Not a database issue.
Missing categories is a database issue, not a file issue.
The active template name is stored in the database. If you find that you have the 'classic' pre-selected it means that it is using a newly created database with new data.
If you find that the Blue Sheffield template is selected, and you end up with blank pages it means that there is a problem with the template files (possibly incompatible with the upgrade?). In this case, if you re-select the 'classic' template the bank page problem should go away.
I think that just about covers all possible scenarios.
If you can try to associate these symptoms with thier possible causes you shouldn't have too much trouble.
DON'T assume that all problems relate to a single cause. Database 'errors' will cause one set of problems, php file issues will cause a different set of problems. As such you must treat them individually.
As for the configure.php files .... Note that you will only need to manually edit these if you use Option#3.
Cheers
RodG
Re: Moved To New Server, store Not Working
I did a complete file-by-file transfer. Where exactly are the database files in all this? Despite years of working with it, I still don't understand ZenCart's file structure, so I often have no idea where to find things I need.
Re: Moved To New Server, store Not Working
What do you mean by 'database files'?
Re: Moved To New Server, store Not Working
Quote:
Originally Posted by
DK_Scully
Where exactly are the database files in all this?
They're not in your web folder.
They're in your server's MySQL database. (And while they're technically stored in "files" inside the MySQL engine's data space ...) they're not files that you "copy over".
For the database, you export-and-import the data, usually using a tool like phpMyAdmin, assuming it's provided by your server administrator.
The Zen Cart FAQ articles on "moving to a new server" and on "upgrading" contain links to an FAQ article which explains how to do database backups.
I gave you this link in post #3 earlier:
http://www.zen-cart.com/content.php?...fferent-server
Re: Moved To New Server, store Not Working
Quote:
Originally Posted by
DK_Scully
Where exactly are the database files in all this?
Well, there's your problem. If you don't know where the 'database files' are it implies that that you have neither exported them from the old server nor imported them into the new server, as such, the new server doesn't know anything about the original installation.
When it comes to ZenCart (and virtually any database driven website) it is the database that has the most value. As long as you have a copy of this you can recover from any error or problem. If you lose the database you are back to square one.
You should be backing up the database often and regularly, and *always* before doing any major site updates or changes.
As indicated by DrByte, you will need to use phpmyadmin (or a similar tool) to do this. Phpmyadmin is generally recommended because it is installed by default on almost all webservers.
There is also an SQL backup tool in most cPanels as well which *can* be used, but if your database is large this is prone to timeout errors which leads to an incomplete backup so we don't tend to mention it very often. Worth knowing about in a pinch though (eg: if the host doesn't have phpmyadmin installed).
The export/import is generally far easier to do than it might first appear.
Cheers
RodG
Re: Moved To New Server, store Not Working
I take approximately 100 orders a day on my site and back up the database daily. I delete any back up older than 7 days. Then if the database ever crashes I am only out the current day's data. It only takes about 30 seconds to log into the hostgator cpanel click on back ups and click on the database name and it automatically downloads within a minute or two. So much easier than rebuilding from an old backup and sweating about all the lost info.
Re: Moved To New Server, store Not Working
Okay, apparently I didn't give enough information before. I did make a full site backup using the Backup Wizard, downloaded it to my PC, and uploaded it to the new server. Since it didn't seem to work the last time, I just repeated the process again this morning, and am trying to restore it to the new server using the Backup/Restore feature.
But the database name is different...I had no choice in this, as I moved from a reseller server to a shared server, and now the prefix is different. Before it was oasis1_bookstore, now it's boruma_oasis. I don't have a clue how to make the new server use the old database when the names are so different.
Re: Moved To New Server, store Not Working
Database NAME and tablename PREFIX are completely different animals.
oasis1_bookstore and boruma_oasis are the database *NAME* (the DB_DATABASE setting in configure.php).
That's got nothing to do with the table prefix, which is recorded in your configure.php file as DB_PREFIX ... so you simply read DB_PREFIX from your old configure.php and type that into the zc_install screen where it asks for the tablename prefix.