Page 1 of 9 123 ... LastLast
Results 1 to 10 of 82
  1. #1
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Upgrade strategy ... (and server move)

    Hi,

    First post and I'm no high tech guy but I manage ...

    I have a perfectly good working Zencart site here: http://www.petticrows.co.uk/catalog/index.php

    This has been working 6 years without problem but I have to move servers ...

    The new server has php version of 5.4 so will not work with this install.

    The old server/install has the below details:

    Zen Cart 1.3.8a
    Database Patch Level: 1.3.
    Patch: 1::
    8
    v1.3.8 [2008-04-18 11:28:49] (Fresh Installation)
    v1.3.8 [2008-04-18 11:28:49] (Fresh Installation)


    SERVER INFORMATION
    Server Host: www.petticrows.co.uk (192.168.0.33)
    Server OS: Linux plesk1.hosting.astutium.com 2.4.21-63.EL #1 Tue Nov 3 18:32:44 EST 2009 i686
    PHP Version: 4.4.2 (Zend: 1.3.0)
    Database: MySQL 4.1.19
    HTTP Server: Apache/2.0.46 (CentOS)




    What is my best upgrade / migration strategy here?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrade strategy ... (and server move)

    It appears as though your site has very few customisations, save perhaps the header graphic and a slight bit of colour changing via CSS. So that makes upgrading quite straightforward.

    In your unique case I imagine the following would suffice:
    1. On your new server, install the latest version of Zen Cart. During installation, tell it to use the same "table prefix" as your old site currently uses (see DB_PREFIX in the old site's /includes/configure.php file on the server)
    2. Take a database backup from the old server using phpMyAdmin: http://www.zen-cart.com/content.php?144
    3. Import that database onto your new server, using phpMyAdmin on the new server.
    4. Run the conversion script to convert the imported data to utf8: http://www.zen-cart.com/downloads.php?do=file&id=1318
    5. Run zc_install on the new server to then upgrade the imported data to work with the latest Zen Cart.
    6. Copy over your product images (the /images/ folder) from your old server to the new server.
    7. Re-do any edits to language files like you did on the old site.
    8. Make any template tweaks, such as logo, colour, etc.
    9. Reconfigure any modules (payment, shipping) as needed. There might be updates to some plugins that you may need to install for some of those modules that you'd previously added.

    As a sanity check, it's good to take a copy of the old site's PHP files, onto your PC, and then run a tool like WinMerge to compare all those files against an original copy of ZC v1.3.8 (your old version) in order to highlight any customisations you'd made, so you have a list of the kinds of changes you'll want to re-make in the new version's files. (Don't just copy old version's files into new version, since that might remove things that are needed by the new version.)

    Recommended reading:
    http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Re: Upgrade strategy ... (and server move)

    Thanks - the install is standard apart from colours.

    I have had the database copied over by the hosting company.

    The install does not conduct ecommerce; rather people place orders but there is no final payment option usually because the items are odd shapes and shipping is complexed combined with overseas sales and import tax problems.

    What is utf8? and what would my current db be?

    I'm not too bothered about the order history in the db but I do want all the product listings and photos to be preserved.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrade strategy ... (and server move)

    utf8 is the format in which the data is stored. Using utf8 will make your site more compatible with future versions, and is the industry standard. Older versions used iso-8859-1 which didn't support non-english characters without some odd complicated translation. Running the conversion utility fixes those.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Re: Upgrade strategy ... (and server move)

    In which case do I have to do that? I only have English characters in my datebase

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrade strategy ... (and server move)

    Quote Originally Posted by montello1984 View Post
    In which case do I have to do that? I only have English characters in my datebase
    In my opinion you should make the conversion. It takes 90 seconds using the tool I mentioned in #4 in my earlier post.
    That will leave your database in utf8 format, which means it will be compatible with future versions of Zen Cart, and will also mean you won't have to change a bunch of PHP files in every new ZC version to tell it NOT to use utf8 when it's designed for utf8.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Re: Upgrade strategy ... (and server move)

    Ok - I have made some progress ...

    The Database is on the new server; and is in the utf8 format.

    All the product images have been uploaded.

    I have a virgin installation of Zen Cart up on my staging server ....

    But it is not picking up the SQL database or the product images ... :-(

    Any tips?

  8. #8
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Re: Upgrade strategy ... (and server move)

    To see the old install go to www.petticrows.co.uk and click "On-line shop"

    To see the staging version you will need to add this line to your hosts file:

    80.76.216.10 www.petticrows.co.uk

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrade strategy ... (and server move)

    On the old server, in /includes/configure.php what is the setting for DB_PREFIX ?
    What is the same setting on the new server?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Dec 2014
    Location
    United Kingdom
    Posts
    49
    Plugin Contributions
    0

    Default Re: Upgrade strategy ... (and server move)

    here is the file; seems to have the correct DB credentials:

    <?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-27 11:45:51
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://www.petticrows.co.uk');
    define('HTTPS_SERVER', 'https://www.petticrows.co.uk');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', '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)
    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '/catalog/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //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/dragon/public_html/catalog/');

    //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/dragon/public_html/catalog/logs');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'dragon_petticrow');
    define('DB_SERVER_PASSWORD', '****************');
    define('DB_DATABASE', 'dragon_onlineshop');

    // 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/dragon/public_html/catalog/cache');

    // EOF

 

 
Page 1 of 9 123 ... LastLast

Similar Threads

  1. v1.2.x Advice on upgrade strategy from 1.2.6 to 1.5.4
    By gareth-h in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 12 Dec 2015, 01:35 PM
  2. v139h Server move & upgrade - sanity check please
    By bigplaywebguy in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 3 Feb 2012, 07:27 PM
  3. Install Hanging up on upgrade/server move etc? Check this
    By Ryk in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 Jan 2010, 11:59 PM
  4. Server move - Problem with url and Server/Version Info - please help!
    By bethalicea in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 7 Jun 2009, 10:07 PM
  5. move and upgrade procedure
    By godt in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 21 Jan 2008, 07:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR