Moving a Zen Cart Installation

Here’s how I moved my Zen Cart installation to a sub directory.

1.) Create a sub directory on your site via: FTP or however you know to.

2.) Move all files of your Zen-Cart installation into your sub directory.

3.) Edit 2 configuration files of your zen-cart.

  • /includes/configure.php
  • /admin/includes/configure.php

In /includes/configure.php you want to edit:

  • DIR_WS_CATALOG
  • DIR_WS_HTTPS_CATALOG
  • DIR_FS_CATALOG
  • DIR_FS_SQL_CACHE

In /admin/includes/configure.php you want to edit:

  • DIR_WS_ADMIN
  • DIR_WS_CATALOG
  • DIR_WS_HTTPS_ADMIN
  • DIR_WS_HTTPS_CATALOG
  • DIR_FS_ADMIN
  • DIR_FS_CATALOG

In both of these files you simply want to add your <subdirectory> followed by a forward slash /

NOTE: All directories should not have a leading slash / and SHOULD ALL have a trailing /
example:

define(‘HTTP_SERVER’, ‘http://192.168.1.1/’);

define(‘HTTP_SERVER’, ‘http://www.example.com/’);

define(‘DIR_WS_ADMIN’, ‘shopping-cart/admin/’);

4.) Now you need to access your database via: phpMyAdmin or NaviCat

In your Zen Cart database you want to edit the configuration table in the following fields:

  • Log Destination – STORE_PAGE_PARSE_TIME_LOG
  • Session Directory – SESSION_WRITE_DIRECTORY

Use the following utility if you don’t know how to do step4:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=82

This worked great for me.
Please comment here if you try this or have any questions.
Thank you.

Related Posts

Leave a Reply