Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Paths, Paths, Paths

    Hi Gang -

    I moved my working Zen Cart v1.3.7.1 webpage to a new server where I have he files stored in a sub-directory compared to the former place where I had it right smack in the root folder:

    Previous server location: /home/public_html/
    Current server location: /home/public_html/mystore/

    I am a little confuse about setting the correct paths for the current server location in the configure.php files (in includes and admin/includes too).

    I see I had previously:

    Code:
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    
    etc., etc.
    according to the new location should these now look like:

    Code:
    define('DIR_WS_CATALOG', '/mystore/');
    define('DIR_WS_HTTPS_CATALOG', '/mystore/');
    define('DIR_WS_IMAGES', '/mystore/images/');
    define('DIR_WS_INCLUDES', '/mystore/includes/');
    
    etc., etc.
    Am, I correct?
    I think the confusing thing is - do I need to add a beginning slash at every "mystore/" directory?

    Thanks!
    gabstero

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Paths, Paths, Paths

    No, just the two CATALOG paths need the forward slash before the path (/mystore/). Here's what I have in my test site (in the /demo subdirectory):

    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/demo/');
    define('DIR_WS_HTTPS_CATALOG', '/demo/');

    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', '/');

    A better question might be "Should I upgrade my terribly insecure 1.3.7 Zencart site to at least 1.3.9h ?" The answer is, "Yes, ASAP".

  3. #3
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Paths, Paths, Paths

    Thanks, Steve!

    it makes sense. Thanks!

    g

 

 

Similar Threads

  1. Paths
    By Shooters in forum Basic Configuration
    Replies: 4
    Last Post: 1 Mar 2008, 03:17 AM
  2. Virtual Paths
    By D@ Mick in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 20 May 2006, 07:54 PM

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