Zen Cart Logo
Forums / Basic Configuration / Renaming Zencart Directory Broke My Store (too)

Renaming Zencart Directory Broke My Store (too)

Locked

Views: 1,663

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
16 Sep 2007, 8:22 PM
#1
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Renaming Zencart Directory Broke My Store (too)

Alas, I would like things to start going smoothly...

I followed the instructions given at
http://www.zen-cart.com/wiki/index.p...Change_Folders

I was able to accomplish step 2 (session directory step in the Admin), and changed all the /zencart to the new /catalogue

  1. my site /catalogue doesn't work, giving a 404 error
  2. I don't know how to do a few things in the Fix Cache Key note:

/*

  • This utility is used to reset your "SESSION_WRITE_DIRECTORY" key after switching servers.
    1. Make sure the DIR_FS_SQL_CACHE setting is correct in your /includes/configure.php file.
    1. Copy this file to the folder where "index.php" exists for your Zen Cart site
    1. Run it
    1. The cache setting from your configure.php file will be displayed, followed by
  • the cache setting from your database.
  • If they match, it will say "No changes required."
  • If they do not match, it will synchronize the database to match the configure.php setting.
    1. VERY IMPORTANT .... WHEN DONE, DELETE THIS FILE FROM YOUR SERVER!!!!!!!!!!!
  • If you don't delete it (or at least rename it to something very obscure), then you run the
  • risk of somebody using it to find out information about your server configuration, which
  • could compromise your site's security. Thus, deleting this file when finished is the best approach.
    */

-For step #1, what IS the correct setting?
-For step #2, how do I run a php file on the server? This is not how I thought of php files LOL.

It is possible I spelled "catalogue" differently in the Admin which would of course screw everything but not likely. Now of course I can't get in the confirm that either way.

Help?

Thanks so much!

16 Sep 2007, 8:30 PM
#2
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Renaming Zencart Directory Broke My Store (too)

In case this helps...

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

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', <removed because my full name is in the path>('DIR_FS_CATALOG', '/ <removed because my full name is in the path>

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

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

16 Sep 2007, 8:56 PM
#3
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Renaming Zencart Directory Broke My Store (too)

Well... I believe I fixed this.

The FTP wasn't overwriting the files due to the permissions. I didn't realize the failure. Changes chmod settings, transferred, changed back, poof. We seem to be working. I can even log into the admin!

19 Sep 2007, 3:38 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Renaming Zencart Directory Broke My Store (too)

Thanks for pointing out that when permissions are set to 444 you cannot overwrite the file via FTP until you change the file permissions to at least 644 ...

This is not always very obvious and easily overlooked ...

NOTE: Rule of thumb, upload file ... check date and time - if no change, first try to refresh the display of the files on the server - if still know change, check the permissions to make sure you can overwrite - if you still cannot, delete the goober thing or rename it and load your new file ...

Been there, done that ... got a dozen T-Shirts ... :lamo:

20 Sep 2007, 2:27 AM
#5
bahnstoermer avatar

bahnstoermer

New Zenner

Join Date:
Aug 2007
Posts:
94
Plugin Contributions:
0

Re: Renaming Zencart Directory Broke My Store (too)

Yeah, thanks for saying that... in fact, the date is the only thing that tipped me off. The tricky part is that the FTP program acts as though it transfers all the files (window flashes, all the lines of the process change)... it's only until you really see the date, then go read the lines of the FTP detail that you see the "transfer failed." D'oh! LOL.

21 Sep 2007, 6:33 PM
#6
bkarnot avatar

bkarnot

New Zenner

Join Date:
Sep 2007
Posts:
17
Plugin Contributions:
0

Re: Renaming Zencart Directory Broke My Store (too)

Is there a post on how to change the directory name? Above link was broken, thanks!

22 Sep 2007, 7:41 PM
#8
bkarnot avatar

bkarnot

New Zenner

Join Date:
Sep 2007
Posts:
17
Plugin Contributions:
0

Re: Renaming Zencart Directory Broke My Store (too)

AH-HA perfect post. OK for the step below, do I just type the name of the folder? any slashes?

"Go into Admin > Configuration > Sessions and change the Session Directory to reflect the new folder name"

22 Sep 2007, 8:40 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Renaming Zencart Directory Broke My Store (too)

It should be the full path.
Basically, take what's there, keep the existing format, and change just the foldernames as appropriate.

If in doubt, use the fix-cache-key utility mentioned.