Zen Cart Logo
Forums / General Questions / Moved To New Server, store Not Working

Moved To New Server, store Not Working

Views: 3,010

Results 1 to 20 of 43
24 Jan 2015, 12:59 PM
#1
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Moved To New Server, store Not Working

I moved several sites to a new server, and now none of them are working. I'm getting the standard error page that says:

Hello. Thank you for loading Zen Cart®.
You are seeing this page for one or more reasons:

I understand that I have to make changes to several files...but which ones, besides /includes/configure.php and /admin/includes/configure.php, need changing...and what am I supposed to look for?

I do NOT want to have to rebuild these carts from scratch...in most cases, that's not even a viable option. So your help would be greatly appreciated!

24 Jan 2015, 1:16 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Moved To New Server, store Not Working

Look further down on that error page; a more detailed reason for the page's display is imbedded in the text.

Moving to a different host, you'll need to change the following settings in the configure.php files, both admin and store-side (at a minimum):

  • DIR_FS_CATALOG, DIR_FS_LOGS, DIR_FS_SQL_CACHE ... point it to your new hosting file structure
  • DB_* settings ... to reference your new hosting database
24 Jan 2015, 3:14 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Moved To New Server, store Not Working

Take a look at this article:
http://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server

It recommends first doing a fresh install on the new server, to generate configure.php files suitable specific to THAT SERVER.
And THEN preserve those files, copy over all the files and database from the old server, and use the new configure.php files instead of the old ones.
That saves the risk of missing various edits.

9 Feb 2015, 4:16 PM
#4
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Something went wrong, and I don't know what. I followed all instructions exactly. I wiped the new server clean, reinstalled the base ZenCart installation. Created a new MySql. Went through the installation procedure, and everything was working right. Then I uploaded the saved files from the old site, except for the two configure.php files. I modified them with the new MySql information, and uploaded those last. Now the site has vanished again, to be replaced with a 403 error message.

http://book-oasis.com/

What did I do wrong?? :oops:

9 Feb 2015, 4:27 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Moved To New Server, store Not Working

The links on that 403 page should help. Contacting your host might be your best bet.

9 Feb 2015, 4:39 PM
#6
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Stevesh, they said it's third-party software and I had to contact you. :blink: I'm getting really disgusted with HostGator, they make you wait a full hour before talking with an online tech, then are providing more and more excuses, and less and less actual help.

9 Feb 2015, 4:56 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Moved To New Server, store Not Working

I have no experience with your host, but I've noticed they've been taking a beating lately in this and one other forum I frequent.

Do you have an .htaccess file in the root of your store?

9 Feb 2015, 5:36 PM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Moved To New Server, store Not Working

DK_Scully:

I wiped the new server clean, reinstalled the base ZenCart installation. Created a new MySql.

Hmmm, in that order???

The SQL database needs to be created before you can install ZenCart, so if you managed to install ZenCart and then created a new database you'll either have overwritten data that ZenCart inserts into the database during its installation, OR, you'll end up with two different databases. The zencart populated one and the newly created empty one.

DK_Scully:

Then I uploaded the saved files from the old site, except for the two configure.php files. I modified them with the new MySql information, and uploaded those last.

Those two configuration files would have been correctly configured for the new installation after you'd completed the install. There would be no need for you to modify them again. The fact that you apparently did so and gave them the 'new' database information means that ZenCart is now trying to use an unpopulated database.

DK_Scully:

Now the site has vanished again, to be replaced with a 403 error message.

A 403 error is a generic error message that can be caused by many things. Although it isn't 'typical behaviour' for a database related error it isn't something I'd be ruling out at this stage.

More often than not, the 403's are permissions related.

DK_Scully:

What did I do wrong??

Impossible to say at this stage.

Cheers
RodG

9 Feb 2015, 5:50 PM
#9
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Stevesh, yes I do. But I don't know what changes should be made to it.

RodG, yes, I created the database first. Sorry about ordering them wrong. I understood the instructions to be, create a new database, re-upload everything else, make changes to the old configure.php files, upload them after everything else has been uploaded. I can re-upload the original ones again...but it doesn't solve the problem I was having that none of my site mods showed up. I had changed the template completely, and added a ton of categories to the original site. None of that showed up, so I re-uploaded the modified configure.php files in hopes that would help.

I have about 8 sites to move, and they all have running ZenCart databases that cannot be lost. I chose to move this one first because it's still in progress, not active. But following the instructions only brought up the basic "generic" site, not all the mods I'd made. So still, something is wrong, and I don't know how to fix it.

9 Feb 2015, 5:53 PM
#10
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Okay, I deleted both configure.php files, and renamed the configure.php.bak files to configure.php. Now the https://www.book-oasis.com page is totally blank, and the admin/index.php page is showing the stock "You are seeing this page for one or more reasons" message again. Not much of an improvement.

9 Feb 2015, 6:02 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Moved To New Server, store Not Working

A stock Zencart installation doesn't have an .htaccess file in the root. Try saving it somewhere and deleting it from the server.

When I add /index.php to your store URL, I see the same setup page you're seeing with admin. That page almost always means the path information in the configure.php files is wrong, which it would be, I guess, if you replaced them with the .bak files.

9 Feb 2015, 6:11 PM
#12
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Stevesh, I'd have thought the .bak files held exactly what was in the original file, so renaming it .php instead of .php.bak would have solved the problem. Would it be easiest to just start over again? sigh And when I do, how do I get it to show up all the changes I'd made?

If I can't get this one back to its original state, there's no way I'll risk moving the sites that are active.

9 Feb 2015, 9:28 PM
#13
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

I just sent you a private message with the hostgator configure page for the store side. I did change the database name and password but the rest of it stayed the same.

9 Feb 2015, 10:28 PM
#14
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

SouthShorePizza, thank you very much for the information you sent me! That's very kind of you! I checked my configure.php files, and they look identical to yours except, obviously, for different database username and passwords. So I don't know what's causing the problem. I think the best thing, since this site is still just in the beginning stages, is to delete it entirely and try again. :-<

10 Feb 2015, 3:17 AM
#15
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Okay, I'm baffled. I started over completely from scratch, got https://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.

My Admin / Tools / Template section shows that Sheffield Blue has been uploaded, but it's not showing as active. None of the categories I made on the old site are showing up, either.

I've followed all the instructions...why aren't the mods I made to my old site showing up?

10 Feb 2015, 10:25 AM
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Moved To New Server, store Not Working

DK_Scully:

Okay, I'm baffled. I started over completely from scratch, got https://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.

My Admin / Tools / Template section shows that Sheffield Blue has been uploaded, but it's not showing as active. None of the categories I made on the old site are showing up, either.

I've followed all the instructions...why aren't the mods I made to my old site showing up?

Realize that you may feel flustered, aggrivated, etc... IMHO, more information is needed when describing what is not working/occurring as expected.

These changes that were made to categories: database related. So when was the database backed up as compared to the changes that were made.

Template: are you able to change to a different template and then try to change back to your current template (Sheffield Blue)?

I just recently setup a new account with a host and for some reason although for the first two hours of setup I was able to access the site and all things seemed to work as they should, a few minutes later, changes I had made appeared to be undone. Not to say that it's the case, but I remained patient and the next day, without additional changes it was all back the way it "started".

How are you accessing "the new server"? It's not still by the uri or else how can the original be setup/restored and the new also? Does it have a temporary uri? Are you requesting some sort of URI transfer?

10 Feb 2015, 12:16 PM
#17
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

Hostgator is upgrading the database system. phpmyadmin was changed Sunday night to a newer version. My database has been running much slower since. I am hoping this improves soon!

Have you checked your databases to make sure they have the correct data?
zen_categories_description table should show all your categories on the new site. If not you need to redo your database move.

zen_template_select table should show your templates. Although I am not sure if it shows all of them or just the active one. I only have the classic installed on my site. So I can't look and see if anything more than the current active one shows. Although I would bet money on this table shows all installed templates and not just the active one.

Have you verified through CPanel that your files were updated? Add a comment to one and upload it again then view the file through cpanel and verify your comment is actually there. But it sounds to me as if you database didn't move properly or you'd have your categories on the wrong template.

10 Feb 2015, 3:20 PM
#18
dk_scully avatar

dk_scully

Zen Follower

Join Date:
Jan 2011
Posts:
339
Plugin Contributions:
0

Re: Moved To New Server, store Not Working

MC, I am frustrated, because I have 8 more sites that need to be moved, and they're all "active," so I don't dare move them until I get the process ironed out with this one still in the process of being built. I can't afford to pay HostGator $25 each to do it for me...I wish I could!

I did a complete file by file download of the old site to my PC. And verified every single folder (which took some time) to make sure every file transferred.

After I installed the new version and verified that it was working right, I uploaded all those saved files (except the two configure.php files) to the new server. The dns nameservers have already been changed, so I have no way of accessing the old site anymore. When I access https://www.book-oasis.com, I'm accessing the new site on the new server.

Yes, I can change the template from Contemporary Green to Sheffield Blue and back. But it should have done that automatically when I uploaded the old files to the new server. And none of my categories are there; the category list is empty. I don't know what to do about that.

10 Feb 2015, 3:27 PM
#19
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Moved To New Server, store Not Working

DK_Scully:

RodG, yes, I created the database first. Sorry about ordering them wrong.

No problem. Just needed to be sure about that before delving deeper.

DK_Scully:

I understood the instructions to be, create a new database, re-upload everything else, make changes to the old configure.php files, upload them after everything else has been uploaded.

That'll work ok (or should), but I've noticed in some of the more recent posts by DrByte that he is recommending creating a new DB, doing a fresh install with the latest update (which will create valid config files) and then importing the original database and uploading any custom files. (At least I think that is the order he suggested). The end result being there will be no need to manually edit the confg files (which more often than not is where people go wrong).

DK_Scully:

but it doesn't solve the problem I was having that none of my site mods showed up. I had changed the template completely, and added a ton of categories to the original site. None of that showed up,

I can understand why the template changes may not show up (missing files, sometimes caused by a bad upload), but the missing categories is a bit of a mystery unless something went amiss with the database import (the only other reason would be that you aren't using the correct databse).

DK_Scully:

so I re-uploaded the modified configure.php files in hopes that would help.

One can hope.

DK_Scully:

I have about 8 sites to move, and they all have running ZenCart databases that cannot be lost.

Quite understandable. It is the database files that is the most important thing to maintain during any upgrade. You can completely trash a zencart installation, but as long as you have a good copy of the most recent database the store can be fully recovered. If you lose the database you are pretty much starting afresh.

DK_Scully:

I chose to move this one first because it's still in progress, not active. But following the instructions only brought up the basic "generic" site, not all the mods I'd made. So still, something is wrong, and I don't know how to fix it.

One of these days I'm going to have a read of those instructions myself. LOL. Seriously though, I have my own methods of doing the upgrades, but it isn't method I'd recommend for folk with a lot less experience - it basically involves making a copy of he original site, uploading all the new files, overwriting any existing ones, and then checking for and fixing anything that got busted in the process. When satisfied with the results I place the original site into maintenance mode and make the 'copy' become the 'active' site. It is a bit of a 'sledgehammer' approach in that I don't bother comparing for file changes (which would avoid the need for debugging and fixing), but it works for me. Definitely NOT the method to use without having extensive debugging and coding experience though.

I think the point I'm trying to make here is that there are several different approaches that can be taken when upgrading, ranging from the 'safe' way (which I assume is the approach taken in the upgrade instructions), the 'dangerous' way (The method I use), and something in between these two methods, which would depend on the persons skillset and the particular site being upgraded (how many custom modifications does it have, how many add-ons, etc).

Alas, telling you all this doesn't really help with your problem(s) though.

Cheers
RodG

10 Feb 2015, 3:38 PM
#20
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Moved To New Server, store Not Working

DK_Scully:

SouthShorePizza, thank you very much for the information you sent me! That's very kind of you! I checked my configure.php files, and they look identical to yours except, obviously, for different database username and passwords.

Be careful when comparing with someone elses config files, it is all to easy to do a visual compare and miss an all important missing / (or similar). It only takes one tiny thing to be out of place and the whole thing can 'fail'.

You may be better posting a copy of your config files so that other people can take a look to see if there is something you have missed.

DK_Scully:

I think the best thing, since this site is still just in the beginning stages, is to delete it entirely and try again. :-<

I see nothing wrong with that approach at all. You'll often find that its the quickest and easiest solution, especially if you've tried a number of things and start to forget exactly what changes you did (or didn't) make.

The upgrades generally get easier the more you do.

Cheers
RodG