Thank you for the replies.
The process is pretty basic, but since your posts above suggest you like checklists, I'll restate it:
a) make a new database
b) install v1.5.4 into it, being sure to use the same DB_PREFIX in new as was in old
(this builds a new set of configure.php files containing the new database credentials as you provide them during the zc_install interview, so no further changes will be required to those files)
c) backup the old database
d) import old db into new
e) zc_install - database upgrade
Done.
Is the above list relevant to where i am with my installation now, or a summary of what should be done, but maybe wasnt?
I know it says the process is pretty basic, but I dont know where the process listed fits into my situation.
If it is advice on how to proceed from the current status, should I delete the millenni_zcart154, create a new database with a different name millenni_dbNewName, new password, new user, in mySQL import millenni_db_1 into millenni_dbNewName while millenni_dbNewName is selected,
Does this attempt to change the confidgs (it says so) BUT
If so, should the configure files be writable before I start the process,
I only ask because mc12345678 says
[QUOTE ]Btw, no need to rename the admin directory or change permissions on the configure.php files for a database only upgrade. Not to be overly sarcastic, but where's the file modifications in a database only upgrade? :p ([/QUOTE]
and yet zc_install
reports
- /admin/includes/configure.php does not exist more info...
- store configure.php is not writeable more in
So.
Does it need to be writable or not.? Does the upgrade re-write anything in the configs, or not?
As for seeing the warning about needing a database upgrade, triple, quadruple check each line of the admin and store configure.php files (again a comparison tool does this quickly and easily) there should be few differences between the two, and they should really make sense...
message after import database millenni_db1 into millenni_zcart154
Import has been successfully finished, 328 queries executed. (millenni_db1.sql.zip)
The Report in mySql for data bases extant is name/size/user
millenni_db1 |
5.23 MB millenni_dbuser2 |
[TABLE="class: sql"]
[/TD]
[TD="class: actions"][/TD]
[/TR]
[TR]
[TD]millenni_zenc15[/TD]
[TD]7.05 MB millenni_zenc15 (this was for deleted (buggy)1.5.3effort)[/TD]
[TD]
[/TD]
[TD="class: actions"][/TD]
[/TR]
[TR]
[TD]millenni_zenc154[/TD]
[TD]2.01 MB millenni_zenc154[/TD]
[TD]
[/TD]
[TD="class: actions"][/TD]
[/TR]
[/TABLE]
If I re-run zc_install, for the subfolder site, I get these messages
-
/admin/includes/configure.php does not exist more info...
-
store configure.php is not writeable more info...
-
includes/configure.php = Unwriteable
-
admin/includes/configure.php = NOT FOUND
13 statements processed.
34 statements processed.
Note: 4 statements ignored. See "upgrade_exceptions" table for additional details.
16 statements processed.
6 statements processed.
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
I have looked at the respective config files to compare the live site using **millenni_db1 **and the subfolder site using millenni_zcart154
The following are the respective configs for live 1.5.0 site left, and subfolder1.5.4 right
|
|
| ADMIN includes |
|
| //150 admin/includes <?php /** folder * @package Configuration Settings circa 1.5.0 * @copyright Copyright 2003-2011 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * File Built by zc_install on 2014-11-15 05:28:02 / /************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. / /**** The 2 files should be kept separate and not used to overwrite each other. ********/ / * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN: * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries: / define('HTTP_SERVER', 'https://enterprise.terrassl.net'); define('HTTPS_SERVER', 'https://enterprise.terrassl.net'); define('HTTP_CATALOG_SERVER', 'http://www.rarecoinsandtokens.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://enterprise.terrassl.net'); // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_ADMIN', 'false'); // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_CATALOG', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_ = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path']; //define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_ADMIN', '/~millenni/adminnewzen2/'); //define('DIR_WS_CATALOG', '/rarecoinslocal/'); define('DIR_WS_CATALOG', '/~millenni/'); //define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', $p2) . '#', '', dirname($SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_ADMIN', '/~millenni/adminnewzen2/'); //define('DIR_WS_HTTPS_CATALOG', '/rarecoinslocal/'); define('DIR_WS_HTTPS_CATALOG', '/~millenni/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS = Filesystem directories (local/physical) define('DIR_FS_ADMIN', realpath(dirname(FILE) . '/../') . '/'); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ //define('DIR_FS_CATALOG', 'C:/wamp/www/rarecoinslocal/newzen2/'); define('DIR_FS_CATALOG', '/home/millenni/public_html/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_CHARSET', 'utf8'); define('DB_SERVER', 'localhost'); // define('DB_SERVER_USERNAME', 'root'); // define('DB_SERVER_PASSWORD', 'password'); define('DB_SERVER_USERNAME', 'millenni_dbuser2'); define('DB_SERVER_PASSWORD', 'e************v'); define('DB_DATABASE', 'millenni_db1'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/millenni/public_html/cache'); // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com / * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ // EOF |
//154 admin includes (native installation no edits..NOT UPDATING not working to update) <?php /** * @package Configuration Settings circa 1.5.4 * @copyright Copyright 2003-2014 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * File Built by zc_install on 2015-01-02 05:20:25 / /************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. / /**** The 2 files should be kept separate and not used to overwrite each other. */ / * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN: * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries: / define('HTTP_SERVER', 'http://www.rarecoinsandtokens.co.uk'); define('HTTPS_SERVER', 'https://www.rarecoinsandtokens.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.rarecoinsandtokens.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://www.rarecoinsandtokens.co.uk'); // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_ADMIN', 'false'); // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_CATALOG', 'false'); define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_CATALOG', '/zencart15/'); define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_CATALOG', '/zencart15/'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_ = Filesystem directories (local/physical) define('DIR_FS_ADMIN', preg_replace('#.includes$#', '', realpath(dirname(FILE) . '/../') . '/')); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/millenni/public_html/zencart15/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/home/millenni/public_html/zencart15/logs'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_CHARSET', 'utf8'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'millenni_zenc154'); define('DB_SERVER_PASSWORD', 'C4'); define('DB_DATABASE', 'millenni_zenc154'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/millenni/public_html/zencart15/cache'); // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com / * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ // EOF |
the imported data came from a highly customized ZC install where the database structure/data didn't resemble usual ZC data and required significant PHP changes to match the highly customized database structure
What does 'highly' and 'significant' mean. The live site has Image Handler4 on it, the subfolder 1.5.4 doesnt. Is that high and significant?
Im sure the two 'resemble' each other.
If it is not high and significant, will the import just create tables for IH4, which then become usable if IH4 is subsequently installed in the subfolder 1.5.4 site?, but otherwise not be a significant?
Finally, what am I supposed to make of this instruction? during the zc_install process?
A - configure.php - If you are using v1.5, go to step B.
If you are using v1.3.x, see the next section below which explains how to edit this file properly.
There is no need to alter the admin configure.php in v1.5.x when renaming your admin folder. Simply proceed to step B.
B - Rename the Admin folder
Using your FTP software or your webhost's File Manager, find your Zen Cart /admin/ directory*. *Rename the directory to match the settings you just made in step A.
Well, I seem to be "using" (what does "using" mean exactly? is it the source database?, the target database?) 1.50, so I go to straight to step B, which promptly tells me to rename the directory I "just made in step A", the step I was told to bypass.
Still rather confused, and its hard to create a comprehensible understanding of quite what goes on in all of this so that I can gain independence when managing my installation. because, with respect, the default instructions (there are 4 different installation/upgrade pages I am supposed to refer to,
HOW DO I INSTALL ZEN CART?
http://www.zen-cart.com/content.php?147
TWO
HOW DO I UPGRADE MY SITE?
http://www.zen-cart.com/content.php?140
THREE
HOW DO I UPGRADE MY ZEN CART SITE?
3 EASY STEPS TO UPGRADE ZEN CART
http://www.zen-cart.com/content.php?148
FOUR
HOW DO I REBUILD MY SITE ON THE NEW VERSION, INSTEAD OF UPGRADING?
http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading
cross reference each other and in some cases contradict each other.)
but perhaps the above will help to inch towards a solution?
Thanks