Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default configure.php questions

    When I upgraded to version 1.5 I used my old configure.php files and only updated the DATABASE_NAME with the new name.

    I've now just upgraded to 1.5.1 and everything works perfectly. However, while checking at the old and new configure.php files find several discrepancies as indicated below.

    In admin/includes:

    This part
    Code:
      $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_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    used to be
    Code:
    define('DIR_WS_ADMIN', '/my admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/my admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    This part
    Code:
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    define('DIR_FS_CATALOG', '/');
    used to be
    HTML Code:
     define('DIR_FS_ADMIN', '/path to my admin/');
     define('DIR_FS_CATALOG', '/ file folder path on the server /');
    These 2 files are new
    Code:
     define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
     define('DB_CHARSET', 'utf8');
    These 2 have disappeared:
    Code:
     define('USE_PCONNECT', 'false');
     define('STORE_SESSIONS', 'db');
    In includes/:

    These 2 have disappeared
    Code:
    define('STORE_SESSIONS', 'db');
    define('DIR_WS_PHPBB', '/');
    In the files content explained here:
    https://www.zen-cart.com/content.php...ents-explained

    I found that this one is obsolete and can be removed
    Code:
    define ('USE_PCONNECT', 'false');
    So I guess I can remove the ones that have disappeared and add the new ones.

    But shall I replace this part

    Code:
    define('DIR_WS_ADMIN', '/my admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/my admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    with this one ?
    Code:
      $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_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    and that one?
    HTML Code:
     define('DIR_FS_ADMIN', '/path to my admin/');
     define('DIR_FS_CATALOG', '/ file folder path on the server /');
    with that one

    Code:
    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    define('DIR_FS_CATALOG', '/');
    please advise

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

    Default Re: upgrade from 1.5 to 1.5.1 = configure.php questions

    You can.

    Or you can leave it alone.

    The new format was only implemented to make it unnecessary to do any editing of the file when renaming the admin folder. But if yours was already renamed then the matter is moot.
    .

    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 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: upgrade from 1.5 to 1.5.1 = configure.php questions

    Thanks much for your reply. I'll leave it as is.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 1 Sep 2012, 03:13 AM
  2. Can't rename dist-configure.php because there is already a configure.php
    By mamasylvia in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Mar 2008, 06:57 AM
  3. how to configure my configure.php file
    By vr4indian in forum Basic Configuration
    Replies: 4
    Last Post: 30 Oct 2006, 04:00 PM

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