Hi,
First I want to say that I have read the tutorial called
I want to move my Zen Cart installation to another host or a different server
All I can say is "I wish it were that simple". Nothing has worked and my frustration is compounded by having a slow internet connection, so FTPing back and forth to change settings is time consuming.
So here I am on day 3.
I first tried, without the article's help, to
1. create new database and user.
2. export data from old server's db and import to new server's db.
3. Copy all files to new server. 4. Fire up in browser expecting issues.
4. See the Zen Cart page that says that you haven't installed or you configure.phps are wrong.
5. manually modify configure.php (in admin too) to reflect new server location, cache, db.
6. Fire up in browser and the store front comes up as a blank plane white page.
7. Find out what fix_cache_key.php does, and manually open db in phpmyadmin. Find the offending path to cache, change it.
8. Fire up in browser, store front is still blank white page. Admin side is a few lines of garbled characters.
Attempt 2. Wipe the whole lot clean and do what I should have done the first time, read the article and follow the steps precisely.
.
.
.
To cut a long story short, I followed the instructions precisely and you'll never guess... blank white page on the store front and a few lines of garbled text on the admin side.
In the rare event that any of you speak garbled, please tell me what this says:
Code:
<html><head>
<style type="text/css">
<!--
h1 {
color: #B56224;
}
h2 {
color: #D67732;
}
h3 {
color: #D67630;
}
.red {
color: #FF0000;
font-weight: bolder;
}
.green {color: #009900;
font-weight: bolder;
}
-->
</style>
</head><body>
������M0HW&RզHS8jlgCLӲl|>3+ټJ79`C>Y8
,Z)8N6qm5<ocO)[zgT@s8ԁ59hp
{RShC1bXjg#4EQ4k9s,/c-tT{E@ҬXEyS,D
6BM6a7KRNN]*##ig<t-t̔,c,U<Bh'ekt1w##A YQ].r(%(c=>mMmK#u;ߵ7XE.kcĖU ӵT7"O`l}4uI`>Ky}M2nn8ΰܡ1jSoLZq:YHgţ{B72#
mDh>gpc{x@<Y:÷xQ5jb����ic��
Ok, here's the only thing I can think of right now that could be wrong. My store used to be in the root directory of public_html. In my new store it's under public_html/store/
Although I don't see a problem here because I am using the configure.php files from the new installation so it has the new directory path covered.
Another helpful hint... the garbled text is actually trying to tell me something. If I visit the admin side the garbled text is always the same "message". If I run fix_cache_key the message changes, but if I re-run it it's the same message each time. Still completely blank white page for front end.
I would love to get this figured out. If anyone is willing to share ideas or help then please let me know what info I need to post up so you can see what's wrong. I'll start with the front end config file:
PHP Code:
<?php
/**
* @package Configuration Settings circa 1.3.8
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
*/
/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/
// 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://africanworks.co.uk');
define('HTTPS_SERVER', 'https://africanworks.co.uk');
// 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', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');
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/webadmin/africanworks.co.uk/html/store/');
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', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'zencart_XXX');
define('DB_SERVER_PASSWORD', 'XXXXXX');
define('DB_DATABASE', 'zencart_XXX');
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/webadmin/africanworks.co.uk/html/store/cache');
// EOF
Bookmarks