Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Renaming directory

    Before I start messing up my zen cart store, I hope someone can help answer this question:

    I now have my store under a directory:

    www.mystore/zencart/

    I now want to change the directory of zencart into "store". So it would look like this

    www.mystore/store/

    Is it as easy as just renaming it or will there be a host of other stuff to rename and change?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Renaming directory

    As long as you manually have not added hard paths to any files or to images in the admin or to the stylesheet.css files then you only need to edit the folder name in the path's in your 2 configure.php files

    Relative paths are ok
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: Renaming directory

    Thank you kobra! Would you let me know which files exactly and where they are located? The configure.php in admin did not include any path? Or am I missing something? Thanks for your help!


    Quote Originally Posted by kobra View Post
    As long as you manually have not added hard paths to any files or to images in the admin or to the stylesheet.css files then you only need to edit the folder name in the path's in your 2 configure.php files

    Relative paths are ok

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Renaming directory

    In /includes/configure.php and similarly in /admin/includes/configure.php, find this:
    PHP Code:
    // 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''/zencart/');
      
    define('DIR_WS_HTTPS_CATALOG''/zencart/'); 
    and change to this:
    PHP Code:
    // 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''/store/');
      
    define('DIR_WS_HTTPS_CATALOG''/store/'); 
    Also this
    PHP Code:
    // * 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''C:/xampp/htdocs/zencart/'); //(whatever your path is) 
    to this
    PHP Code:
    // * 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''C:/xampp/htdocs/store/'); 
    Last edited by gjh42; 22 Apr 2008 at 07:48 PM.

  5. #5
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: Renaming directory

    I'm using zencart version 1.3.8a and found that the files are named differently and actually doesn't show the name of the path:

    admin/includes/configure.php is named dist-configure.php and the path below looks like this:

    // * 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_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    // * 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_ADMIN', '/admin/');
    define('DIR_FS_CATALOG', '/');


    doesn't mention my path /zencart/ therefore does that mean I need not chaneg anything except for those I hard coded in html pages?



    Quote Originally Posted by gjh42 View Post
    In /includes/configure.php and similarly in /admin/includes/configure.php, find this:
    PHP Code:
    // 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''/zencart/');
      
    define('DIR_WS_HTTPS_CATALOG''/zencart/'); 
    and change to this:
    PHP Code:
    // 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''/store/');
      
    define('DIR_WS_HTTPS_CATALOG''/store/'); 
    Also this
    PHP Code:
    // * 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''C:/xampp/htdocs/zencart/'); //(whatever your path is) 
    to this
    PHP Code:
    // * 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''C:/xampp/htdocs/store/'); 

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Renaming directory

    dist-configure.php is the "virgin" copy of configure.php, which will be renamed by the installer and supplied with the actual info for your installation.
    So that file is irrelevant to the question. You need to look in /admin/includes/configure.php in your actual store files.

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Renaming directory

    Or, perhaps you didnt even install ZC yet? In that case simply rename then start the install process.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: Renaming directory

    Great! My mistake was I was using the virgin file in my computer and not getting the files from the store.

    In addition to above, I also had to make changes in the following files:
    DIR_FS_SQL_CACHE
    DIR_FS_ADMIN
    DIR_WS_ADMIN
    DIR_WS_HTTP_ADMIN

    Also had to change permission number to 444 for the configure.php files...I learned otherwise you have this big red warning on the main page when you go to it!

 

 

Similar Threads

  1. v138a renaming directory folder
    By bluelion in forum Installing on a Linux/Unix Server
    Replies: 34
    Last Post: 23 Apr 2014, 02:51 PM
  2. v151 Renaming Admin Directory
    By CarLile in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 15 Mar 2013, 01:59 PM
  3. Renaming the zencart directory.
    By Jeffries Productions in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 24 Sep 2009, 11:25 AM
  4. Problem renaming admin directory!
    By IronMan101 in forum General Questions
    Replies: 2
    Last Post: 15 Jul 2007, 08:34 AM
  5. Renaming ZenCart Directory broke my site!!!!
    By ZuluRose in forum Basic Configuration
    Replies: 7
    Last Post: 27 Oct 2006, 08:49 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