Zen Cart Logo
Forums / Upgrading to 1.5.x / upgrade of database, use of configure.php

upgrade of database, use of configure.php

Locked

Views: 2,095

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Sep 2011, 5:28 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

upgrade of database, use of configure.php

I had a go at upgrading and maybe I am not understanding correctly the instructions:

If your /zen_new folder doesn't have "/includes/configure.php" and "/admin/includes/configure.php" files, copy them from your old store folder.

EDIT your "/zen_new/includes/configure.php" file and ensure that your DATABASE_NAME matches your NEW database. Also verify database username and password in case that information has changed. Save this file, and be sure to upload it as part of the next step. Repeat for the /admin/includes/configure.php file as well:This is saying use the two configure.php from your old site with the new/merged fileset. But the 1.5 configure.php are different structurally so surely it should say copy the configures from the 1.5 demo site you have been playing with and edit the paths and db details to point to the merged site and old db copy that is to be upgraded?

6 Sep 2011, 6:48 PM
#2
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: upgrade of database, use of configure.php

The only changes to configure.php -- both in the admin and catalog -- were omissions (old defines removed) and comment text. Neither of these will impact an upgraded store, so using your current configure.php is perfectly fine.

You are of course welcome to "rebuild" configure.php for your own sanity's sake, but changes were made with copy/paste in mind.

6 Sep 2011, 8:32 PM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: upgrade of database, use of configure.php

I was thinking of the new admin configure code to deal with the renamed directory automatically. I guess that is not essential.

9 Sep 2011, 7:57 PM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: upgrade of database, use of configure.php

It's not essential to renaming the admin because this code doesn't impact admin renaming at all.

So it's less than "not essential," it's actually irrelevant. :smile:

9 Sep 2011, 8:13 PM
#5
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: upgrade of database, use of configure.php

Whoops, looks like I spoke too soon. Totally forgot that the install process has been rewritten to actually generate configure.php on the fly if not already present. The dist-configure.php files are unused in the process (you can actually delete them before uploading).

I suggest you let the installer create fresh files for you, and work with them. Apologies for misleading you.