I would like to move my v1.5.1 Zen Cart installation from …/public_html/catalog to …/public_html. In reading the applicable forums and the thread, https://www-zen-cart.com/content.php?160, it appears that my course of action is to make the following changes, step-by-step::
1. Backup my entire …/public_html/catalog folder
2. I have already determined the new destination folder – it is …/public_html.
3. In Admin > Configuration > Sessions change “Session Directory” from /home/my account/public_html/catalog/cache to /home/my account/public_html/cache
4. Move/Rename the folder. Does this mean I move all the contents of …/public_html/catalog up to …/public_html, not including “catalog” itself? I know I can do this in FTP, but I just wanted to make sure, as there are 13 files and 15 directories, and my total size is around 1.0gb.
5. After changing to “writable”, change …/includes/configure.php as follows:
a. define('DIR_WS_CATALOG', '/catalog/'); to define('DIR_WS_CATALOG', '/public_html/’);
b. define('DIR_WS_HTTPS_CATALOG', '/catalog/'); to define('DIR_WS_HTTPS_CATALOG', '/public_html/');
c. define('DIR_FS_CATALOG', '/home/myaccount/public_html/catalog/'); to define('DIR_FS_CATALOG', '/home/myaccount/public_html/');
d. define('DIR_FS_LOGS', '/home/myaccount/public_html/catalog/logs'); to define('DIR_FS_LOGS', '/home/myaccount/public_html/logs');
e. define('DIR_FS_SQL_CACHE', '/home/myaccount/public_html/catalog/cache'); to define('DIR_FS_SQL_CACHE', '/home/myaccount/public_html/cache');
f. Upload the changes via FTP, then change back to read-only.
6. After changing to “writable”, change …/admin/includes/configure.php as follows:
a. define('DIR_WS_CATALOG', '/catalog/'); to define('DIR_WS_CATALOG', '/public_html/');
b. define('DIR_WS_HTTPS_CATALOG', '/catalog/'); to define('DIR_WS_HTTPS_CATALOG', '/public_html/');
c. define('DIR_FS_CATALOG', '/home/myaccount/public_html/catalog/'); to define('DIR_FS_CATALOG', '/home/myaccount/public_html/');
d. define('DIR_FS_LOGS', '/home/myaccount/public_html/catalog/logs'); to define('DIR_FS_LOGS', '/home/myaccount/public_html/logs');
e. define('DIR_FS_SQL_CACHE', '/home/myaccount/public_html/catalog/cache'); to define('DIR_FS_SQL_CACHE', '/home/myaccount/public_html/cache');
f. Upload the changes via FTP, then change back to read-only.
Please review my plan and let me know if it is viable. I am particularly concerned about step #4, as I do not see anywhere in the forums that this step is defined.
And if I mess up somewhere along the line, is my recovery plan to simply reload my backed-up /catalog/ directory to public_html, and backout any changes I may have made to "Sessions" and/or the config.php files?
I appreciate your indulgence and look forward to your response.
Thank You,
Phil
Bookmarks