Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    Default Renaming the zencart directory.

    I followed the instructions in this tutorial:https://www.zen-cart.com/tutorials/i...hp?article=122 to change my zen directory.

    Once completed following these steps my entire cart would not work. So i changed my configuration file back to the original one and got the site back up.

    Is changing this directory really necessary or can I get by without changing it?

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

    Default Re: Renaming your zencart directory.

    Contents of your configure.php file and an outline of where it was and where you are moving/renaming to
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Renaming your zencart directory.

    im renaming from http://www.flyteusa.com/flyteusa/zen...eset-12112007/

    to: http://www.flyteusa.com/flyteusa/zc/

    I just tried to follow the instructions again a second time. I get the welcome to zencart and it and it has the link to install zencart.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Renaming your zencart directory.

    Contents of your configure.php file
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Renaming your zencart directory.

    includes/configure.php:
    PHP Code:
    // 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://flyteusa.com');
      
    define('HTTPS_SERVER''https://flyteusa.com');

      
    // 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''/flyteusa/zc/');
      
    define('DIR_WS_HTTPS_CATALOG''/flyteusa/zc/');

      
    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/content/n/o/l/nolimitsmx/html/flyteusa/zc/');

      
    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_SERVER''f');
      
    define('DB_SERVER_USERNAME''');
      
    define('DB_SERVER_PASSWORD''');
      
    define('DB_DATABASE''');
      
    define('USE_PCONNECT''false');
      
    define('STORE_SESSIONS''');
      
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

      // 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/content/n/o/l/nolimitsmx/html/flyteusa/zc/cache');

    // EOF 
    admin/includes/configure.php:
    PHP Code:
    following:
       */
      
    define('HTTP_SERVER''http://flyteusa.com');
      
    define('HTTPS_SERVER''https://flyteusa.com');
      
    define('HTTP_CATALOG_SERVER''http://flyteusa.com');
      
    define('HTTPS_CATALOG_SERVER''https://flyteusa.com');

      
    // Use secure webserver for catalog module and/or admin areas?
      
    define('ENABLE_SSL_CATALOG''false');
      
    define('ENABLE_SSL_ADMIN''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_ADMIN''/flyteusa/zc/admin/');
      
    define('DIR_WS_CATALOG''/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/');
      
    define('DIR_WS_HTTPS_ADMIN''/flyteusa/zc/admin/');
      
    define('DIR_WS_HTTPS_CATALOG''/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/');

      
    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)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      
    define('DIR_FS_ADMIN''/home/content/n/o/l/nolimitsmx/html/flyteusa/zc/admin/');
      
    define('DIR_FS_CATALOG''/home/content/n/o/l/nolimitsmx/html/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/');

      
    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_SERVER''');
      
    define('DB_SERVER_USERNAME''');
      
    define('DB_SERVER_PASSWORD''');
      
    define('DB_DATABASE''');
      
    define('USE_PCONNECT''');
      
    define('STORE_SESSIONS''');
      
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

      // 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/content/n/o/l/nolimitsmx/html/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/cache');

    // EOF 
    Is this what your asking for?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Renaming your zencart directory.

    Some like this

    Code:
      define('DIR_WS_ADMIN', '/flyteusa/zc/admin/');
      define('DIR_WS_CATALOG', '/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/');
      define('DIR_WS_HTTPS_ADMIN', '/flyteusa/zc/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/flyteusa/zen-cart-v1.3.8a-full-fileset-12112007/');
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Renaming your zencart directory.

    ok well The way I posted above is the second way I tried it. that didnt work. The first way i tried it i renaimes all /zen-cart-v1.3.8a-full-fileset-12112007/ to /zc/.

    Either way did not work.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Renaming your zencart directory.

    Use FTP and make a folder "save" and move everything in your /zc folder to the created /zc/save folder
    Trandfer a full file set to /zc create another temp db and install ZenCart.

    Save the created configures from this install

    Delete all the /zc files preserving the /zc/save folder
    Now move all contents of /zc/save up one level or back to /zc

    Remove the existing configure files and replace with the ones saved after editing them with the original DB detail block.

    30 min tops
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Sep 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Renaming your zencart directory.

    Thanks, that should work. I give that a show tonight and see how things turn out. Thanks again and sorry for the troubles.

    Brian

  10. #10
    Join Date
    May 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: Renaming the zencart directory.

    hi kobra, need some serious help here.

    i've followed every instruction i could find on renaming the admin directory. Renaming the files, changing permissions etc.

    i even did the reinstall thing u mentioned.

    still nothing.

    all i got was back to square one where it says: "Hello. Thank you for loading Zen Cart™."

    even when i changed the admin file name back to admin, i couldn't get back to my original admin page. just the hello message.

    PLEASE help me out on this. i'm at my wits' end.

    here are my config files: (i've used back admin for now)

    ========================================
    includes/configure.php:

    define('DIR_WS_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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/content/j/a/n/janekoh/html/shop/');

    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_SERVER', '10.8.13.58');
    define('DB_SERVER_USERNAME', '#########');
    define('DB_SERVER_PASSWORD', '##########');
    define('DB_DATABASE', '########');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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/content/j/a/n/janekoh/html/shop/cache');

    // EOF


    admin/includes/configure.php:

    define('HTTP_SERVER', 'http://www.dermoglo.com');
    define('HTTPS_SERVER', 'https://www.dermoglo.com');
    define('HTTP_CATALOG_SERVER', 'http://www.dermoglo.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.dermoglo.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', '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_ADMIN', '/shop/admin/');
    define('DIR_WS_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/content/j/a/n/janekoh/html/dermoglo/shop/admin/');
    define('DIR_FS_CATALOG', '/home/content/j/a/n/janekoh/html/dermoglo/shop/');

    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_SERVER', 'h50mysql29.secureserver.net');
    define('DB_SERVER_USERNAME', '######');
    define('DB_SERVER_PASSWORD', '########');
    define('DB_DATABASE', '#######');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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/content/j/a/n/janekoh/html/dermoglo/shop/cache');

    // EOF


    thanks in advance!
    Last edited by DrByte; 24 Sep 2009 at 02:02 AM. Reason: blank out passwords

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Renaming Admin Directory
    By CarLile in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 15 Mar 2013, 01:59 PM
  2. Renaming directory
    By Decostyle in forum General Questions
    Replies: 7
    Last Post: 23 Apr 2008, 03:59 PM
  3. Using Zencart Info Outside of the zencart Directory
    By thisandthat in forum General Questions
    Replies: 6
    Last Post: 29 Dec 2007, 05:29 PM
  4. Renaming Zencart Directory Broke My Store (too)
    By Bahnstoermer in forum Basic Configuration
    Replies: 8
    Last Post: 22 Sep 2007, 09:40 PM
  5. Renaming ZenCart Directory broke my site!!!!
    By ZuluRose in forum Basic Configuration
    Replies: 7
    Last Post: 27 Oct 2006, 08:49 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