Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Renaming the zencart directory.

Renaming the zencart directory.

Locked

Views: 2,661

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
18 Sep 2009, 9:22 PM
#1
Join Date:
Sep 2009
Posts:
40
Plugin Contributions:
0

Renaming the zencart directory.

I followed the instructions in this tutorial:https://www.zen-cart.com/tutorials/index.php?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?

18 Sep 2009, 9:26 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming the zencart directory.

Contents of your configure.php file and an outline of where it was and where you are moving/renaming to

18 Sep 2009, 9:36 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming the zencart directory.

Contents of your configure.php file

18 Sep 2009, 9:43 PM
#5
Join Date:
Sep 2009
Posts:
40
Plugin Contributions:
0

Re: Renaming the zencart directory.

includes/configure.php:

// 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:

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?

18 Sep 2009, 10:20 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming the zencart directory.

Some like this

  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/'); 
18 Sep 2009, 10:28 PM
#7
Join Date:
Sep 2009
Posts:
40
Plugin Contributions:
0

Re: Renaming the 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.

18 Sep 2009, 10:43 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming the 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

19 Sep 2009, 12:01 AM
#9
Join Date:
Sep 2009
Posts:
40
Plugin Contributions:
0

Re: Renaming the 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

24 Sep 2009, 12:34 AM
#10
soyabeane avatar

soyabeane

New Zenner

Join Date:
May 2009
Posts:
34
Plugin Contributions:
0

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!

24 Sep 2009, 1:01 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Renaming the zencart directory.

your domains are different between the 2 files.
Your DATABASE info is different between the 2 files.
And so are all your paths.
Looks like the files came from different servers.
*
BTW: You posted your password info (which I've blanked out) ... but ... since you shared it publicly you might be advised to change those passwords now.*

24 Sep 2009, 4:30 AM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Renaming the zencart directory.

I posted

Transfer a full file set to /zc create another temp db and install ZenCart.

Save the created configures from this install
Do you still have these?
They should have everything correct for an install at that location

24 Sep 2009, 10:25 AM
#13
soyabeane avatar

soyabeane

New Zenner

Join Date:
May 2009
Posts:
34
Plugin Contributions:
0

Re: Renaming the zencart directory.

Thanks Dr Byte & kobra!

Being the IT idiot that I am, I chose to restore my files to 1 week back when they were working fine and i renamed the admin from there.

works perfectly now.

thanks guys!