The physical LOCATION of your ZC install is governed by the TWO configure.php files.
If/when you move your ZC installation into a sub-folder from the domain root, (or if you do the opposite), the only php files that need modifying are these two configure.php files.
One configure.php file governs the admin side of your installation (the part you use to manage the shop's back-end).
The other configure.php file governs the catalog side of your installation (the part customers use).
While they are similar in most respects, these two files are NOT interchangeable. The configure.php for admin contains more information.
----------------------------------------------------------------------------
The following is relevant...
In admin/includes/configure.php
There are SEVEN edits to make:
----------------------------------------------------------------------------
(First Four)...
Lines 41 to 44 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
Lines 41 to 44 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_WS_ADMIN', '/foldername/admin/');
define('DIR_WS_CATALOG', '/foldername/');
define('DIR_WS_HTTPS_ADMIN', '/foldername/admin/');
define('DIR_WS_HTTPS_CATALOG', '/foldername/');
--------------------------------------------------------------------------
(Fifth and Sixth)
Lines 60 and 61 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_FS_ADMIN', '/home/acct_name/public_html/admin/');
define('DIR_FS_CATALOG', '/home/acct_name/public_html/');
Lines 60 and 61 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_FS_ADMIN', '/home/acct_name/public_html/foldername/admin/');
define('DIR_FS_CATALOG', '/home/acct_name/public_html/foldername/');
---------------------------------------------------------------------------
(Seventh)
Line 87 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_FS_SQL_CACHE', '/home/acct_name/public_html/cache');
Line 87 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_FS_SQL_CACHE', '/home/acct_name/public_html/foldername/cache');
----------------------------------------------------------------------------
----------------------------------------------------------------------------
In includes/configure.php
There are FOUR edits to make:
----------------------------------------------------------------------------
(First Two)
Lines 25 to 26 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
Lines 25 to 26 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_WS_CATALOG', '/foldername/');
define('DIR_WS_HTTPS_CATALOG', '/foldername/');
----------------------------------------------------------------------------
(Third)
Line 41 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_FS_CATALOG', '/home/acct_name/public_html/');
Line 41 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_FS_CATALOG', '/home/acct_name/public_html/foldername/');
----------------------------------------------------------------------------
(Fourth)
Line 65 in a DOMAIN ROOT INSTALL will be
PHP Code:
define('DIR_FS_SQL_CACHE', '/home/acct_name/public_html/cache');
Line 65 in a DOMAIN SUB-DIRECTORY INSTALL will be
PHP Code:
define('DIR_FS_SQL_CACHE', '/home/acct_name/public_html/foldername/cache');
####################################################################################################____
Naturally, your COMPLETE PATH (/home/acct_name/public_html/foldername/) may differ radically from my example - depending on your host server setup.
In the above, foldername is the name you have given to the sub-directory where your ZC installation resides.
When you have altered the configure.php files, you must correct the CACHE LOCATION in the database, so login to your store admin console, and under configuration >>> sessions... Correct the COMPLETE PATH location of the cache folder.
This can also be done by running the fix-cache-key.php file that is available in the free-add-ons of this forum.
--------------------------------------------------------------------------
Bookmarks