Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Transfer to new server

Transfer to new server

Views: 3,276

Results 1 to 20 of 28
16 Jun 2014, 8:01 AM
#1
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Transfer to new server

Hi!

I have transferred my Cpanel account from my old hosting to a new WHM/Cpanel server and when I test my website, I have a blank page or a 500 error!

All my data are on the new server but don't work...

Can you help me please?

Thanks and nice day

16 Jun 2014, 1:02 PM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,795
Plugin Contributions:
22

Re: Transfer to new server

Are you sure the paths and database settings are exactly the same as with your previous account? Check your includes/configure.php and make sure everything is correct.
Also, check for error logs (in /cache directory, looks like myDEBUG-XXXXXXX). You can paste the latest file here and we might be able to help more...

16 Jun 2014, 6:10 PM
#3
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

thanks for your reply!

Yes I'm sure...

I don't have error logs on my cache directory...

16 Jun 2014, 6:24 PM
#4
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

I see on Zen-cart website:

Zen Cart v1.5.0 is compatible with PHP 5.2.14 thru PHP 5.3.x. Requires patches to work with PHP 5.4, and upgrading is a better idea.

I have PHP version 5.4.29 on my new server...

That's the problem?

Thanks

16 Jun 2014, 7:21 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,795
Plugin Contributions:
22

Re: Transfer to new server

AFAIK, it WILL work on php5.4.x, but you might experience some other errors. I don't think it would cause a blank page or HTTP500...

My guess is it's something else, possibly even a .htaccess or some custom php.ini file. Hard to guess...

16 Jun 2014, 9:24 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Transfer to new server

balihr:

AFAIK, it WILL work on php5.4.x, but you might experience some other errors. I don't think it would cause a blank page or HTTP500...

My guess is it's something else, possibly even a .htaccess or some custom php.ini file. Hard to guess...
I agree (on both counts!). A Server 500 after moving a site is many times a typo in one of the configure.php files' (either /includes/configure.php or /YOUR_ADMIN/includes/configure.php) directory constants (especially the DIR_FS_CATALOG one). Make sure also that you don't have any configure.php files in the /includes/local or /YOUR_ADMIN/includes/local directories).

16 Jun 2014, 9:28 PM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

gmonnet:

Hi!

I have transferred my Cpanel account from my old hosting to a new WHM/Cpanel server and when I test my website, I have a blank page or a 500 error!

All my data are on the new server but don't work...

Can you help me please?

Thanks and nice day

You might want to install a 1.5.x version of ZC in a subfolder (www.yourdomain.com/subfolder) of your new server - using the instructions contained in the docs folder of the installation file set. Do NOT use Fantastico or a similar autoinstaller.

Then see if you can reach www.yourdomain.com/subfolder in your browser. If you can then the fault is likely in your configure.php file(s).

Next you post your production site's includes/configure.php file here (minus sensitive details such as user and pwd) and also post your www.yourdomain.com/subfolder/includes/configure.php file. We should then be able to identify what the issue is.

If you can't access www.yourdomain.com/subfolder in your browser then get in touch with your new host.

A 500 error is most likely server related.

16 Jun 2014, 10:00 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Transfer to new server

Some servers will indeed trigger a 500 error when there is a PHP incompatibility.
But the server's Apache and/or PHP error logs will usually describe the error (even if it doesn't show in your Zen Cart logs or cache folder).

16 Jun 2014, 10:03 PM
#9
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,795
Plugin Contributions:
22

Re: Transfer to new server

frank18:

A 500 error is most likely server related.

Uhm, frank18... Sorry, but that's a very common misconception - http500 can be caused by a simple typo in the php files, most often in the language defines. I've just discussed it a few days ago, take a look here. Just saying so that we all try to minimize sending people to host for help (who are usually of no help...). :smile:

16 Jun 2014, 10:19 PM
#10
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

balihr:

Uhm, frank18... Sorry, but that's a very common misconception - http500 can be caused by a simple typo in the php files, most often in the language defines. I've just discussed it a few days ago, take a look here. Just saying so that we all try to minimize sending people to host for help (who are usually of no help...). :smile:

If you read my post carefully, I said likely not definitely.

BTW, as a Linux server admin I am fully aware of what else could cause a 500 error

17 Jun 2014, 6:01 AM
#11
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

Hello!

Thanks for all!

Here the configure.php files:

Website don't work: include/configure.php

<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt 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://www.digiscrapbooking.ch');
  define('HTTPS_SERVER', 'https://www.digiscrapbooking.ch');

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

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

  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', '');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'digiscr2_shop');
  define('DB_SERVER_PASSWORD', 'PASSWORD');
  define('DB_DATABASE', 'digiscr2_shop');
  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', 'file'); 
  define('DIR_FS_SQL_CACHE', '/home/digiscr2/public_html/shop/cache');

// EOF

**Website don't work: admin/include/configure.php
**

<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

// Define the webserver and path parameters
  // Main webserver: eg-http://www.your_domain.com - 
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   *
   * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
   */
  define('HTTP_SERVER', 'http://www.digiscrapbooking.ch');
  define('HTTPS_SERVER', 'https://www.digiscrapbooking.ch');
  define('HTTP_CATALOG_SERVER', 'http://www.digiscrapbooking.ch');
  define('HTTPS_CATALOG_SERVER', 'https://www.digiscrapbooking.ch');

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', '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_ADMIN', '/shop/sylvieadmin/');
  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_ADMIN', '/shop/sylvieadmin/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

  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', '/home/digiscr2/public_html/shop/sylvieadmin/');
  define('DIR_FS_CATALOG', '/home/digiscr2/public_html/shop/');

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

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'digiscr2_shop');
  define('DB_SERVER_PASSWORD', 'tcthBOkhPz5C');
  define('DB_DATABASE', 'digiscr2_shop');
  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', 'file'); 
  define('DIR_FS_SQL_CACHE', '/home/digiscr2/public_html/shop/cache');

// EOF

**Website work, new install on subfolder: /include/configure.php
**

<?php
/**
 * @package Configuration Settings circa 1.5.0
 * @copyright Copyright 2003-2011 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * File Built by zc_install on 2014-06-17 07:47:25
 */


/*************** 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://37.187.147.47');
  define('HTTPS_SERVER', 'https://37.187.147.47');

  // 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', '/~digiscr2/shop2/');
  define('DIR_WS_HTTPS_CATALOG', '/~digiscr2/shop2/');

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

  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', '');
  define('DB_CHARSET', 'utf8');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'digiscr2_shop2');
  define('DB_SERVER_PASSWORD', 'PASSWORD');
  define('DB_DATABASE', 'digiscr2_shop2');

  // 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', 'file'); 
  define('DIR_FS_SQL_CACHE', '/home/digiscr2/public_html/shop2/cache');

// EOF

**Website work, new install on subfolder: admin/include/configure.php
**

<?php
/**
 * @package Configuration Settings circa 1.5.0
 * @copyright Copyright 2003-2011 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * File Built by zc_install on 2014-06-17 07:47:25
 */


/*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/

/**
 * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
 * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
 */
  define('HTTP_SERVER', 'http://37.187.147.47');
  define('HTTPS_SERVER', 'https://37.187.147.47');
  define('HTTP_CATALOG_SERVER', 'http://37.187.147.47');
  define('HTTPS_CATALOG_SERVER', 'https://37.187.147.47');

  // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_ADMIN', 'false');

  // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
  define('ENABLE_SSL_CATALOG', '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)
  $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];

  define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_CATALOG', '/~digiscr2/shop2/');
  define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
  define('DIR_WS_HTTPS_CATALOG', '/~digiscr2/shop2/');

  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)
  define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
  //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/digiscr2/public_html/shop2/');

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

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_CHARSET', 'utf8');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'digiscr2_shop2');
  define('DB_SERVER_PASSWORD', 'PASSWORD');
  define('DB_DATABASE', 'digiscr2_shop2');

  // 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', 'file'); 
  define('DIR_FS_SQL_CACHE', '/home/digiscr2/public_html/shop2/cache');


// Define the webserver and path parameters
  // Main webserver: eg-http://www.your_domain.com - 
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
  /* 
   * URLs for your site will be built via:  
   *     HTTP_SERVER plus DIR_WS_ADMIN or
   *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
   *     HTTP_SERVER plus DIR_WS_CATALOG or 
   *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
   * ...depending on your system configuration settings
   */
// EOF

Thanks for your help!

17 Jun 2014, 7:15 AM
#12
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

Pls check your PM!

Using the info in your configuration files I can access both of your sites without getting an error. The live site gives me the 'Down for Maintenance' page - no error. I am using the latest Firefox on a Linux installation.

Considering I can access both sites it does not appear to be a server side error - could be wrong though...

Can you take that site off maintenance and post here when you have done it? I will then check again from my end.

I have about an hour to spare, say until 10.30 your time.

Cheers / Frank

17 Jun 2014, 7:40 AM
#13
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

Yes, but the site you access is on the old server (digiscrapbooking.ch)... It's work fine

But if I test the site on the new server, it's dosn't work: http://37.187.147.47/~digiscr2/shop

and the test install on subfolder: http://37.187.147.47/~digiscr2/shop2

17 Jun 2014, 7:51 AM
#14
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

gmonnet:

Yes, but the site you access is on the old server (digiscrapbooking.ch)... It's work fine

But if I test the site on the new server, it's dosn't work: http://37.187.147.47/~digiscr2/shop

and the test install on subfolder: http://37.187.147.47/~digiscr2/shop2

On the new server your configure files are pointing to

  define('HTTP_SERVER', 'http://www.digiscrapbooking.ch');
  define('HTTPS_SERVER', 'https://www.digiscrapbooking.ch');

but you are trying to access http://37.187.147.47/~digiscr2/shop

You need to make the configure files on the new server to point to http://37.187.147.47/~digiscr2/shop

OR

change the DNS entry at your registrar to point to the nameserver(s) of the new host and wait for the DNS entries to propagate through the internet.

17 Jun 2014, 8:08 AM
#15
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

I hae make change for the 2 configure.php files but no change....

17 Jun 2014, 8:22 AM
#16
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

gmonnet:

I hae make change for the 2 configure.php files but no change....

In your old /includes/configure.php find

// 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://www.digiscrapbooking.ch');
  define('HTTPS_SERVER', 'https://www.digiscrapbooking.ch'); 

and change to

// 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://37.187.147.47');
  define('HTTPS_SERVER', 'https://37.187.147.47');

and in the same file

  define('DIR_FS_CATALOG', '/home/digiscr2/public_html/shop/'); 

should now read

  define('DIR_WS_CATALOG', '/~digiscr2/shop/');

If this works then make corresponding changes to your admin configure file.

17 Jun 2014, 8:32 AM
#17
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

OHHHH Yeah!!

Very big thanks!!

But now I see the page for Zen-cart installation: http://37.187.147.47/~digiscr2/shop/

There is an other problem on the configure.php?

17 Jun 2014, 8:52 AM
#18
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Transfer to new server

gmonnet:

OHHHH Yeah!!

Very big thanks!!

But now I see the page for Zen-cart installation: http://37.187.147.47/~digiscr2/shop/

There is an other problem on the configure.php?

I can see that too - not very familiar with French any more (forgot most of it since my school days some 45 years ago) you will now need to follow the instructions displayed on the screen.

I won't be available for help in the next couple of hours though.....

17 Jun 2014, 2:04 PM
#19
gmonnet avatar

gmonnet

New Zenner

Join Date:
Jun 2014
Location:
Switzerland
Posts:
11
Plugin Contributions:
0

Re: Transfer to new server

Thanks for your help!!

Now I have this page on my website and admin: (http://www.digiscrapbooking.ch/shop)

Thank you for using Zen Cart ™.

You see this page for several reasons:

This is the first time you use Zen Cart ™ and you have not yet started the installation procedure.
If this really is the case for you, you need to download the directory "zc_install" using FTP software, then launch zc_install / index.php in your browser (or reload this page for the link to the installation).

Your file / includes / configure.php and / or / admin / includes / configure.php contains configuration information invalid path and / or a misconfiguration of the database.
If you recently edit your configure.php files, or perhaps moved your site to a different directory or server, then you need to review and update your configuration.
Read the FAQ and online tutorials on the site Zen Cart ™ for assistance.
Additional Information: includes / configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set

To start the installation ...

Documentation for installation touve in the / docs folder of your distribution Zen Cart ™. You can also find documentation in English in the online FAQs or French on Zen Cart France .
You need to download the directory "zc_install" using FTP software, then launch zc_install / index.php via your browser (or reload this page to see the direct link).
The online FAQ and Tutorials on the site Zen Cart ™ will be a great help if you encounter difficulties.

17 Jun 2014, 2:21 PM
#20
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Transfer to new server

From the message that you posted:

Your file / includes / configure.php and / or / admin / includes / configure.php contains configuration information invalid path and / or a misconfiguration of the database.
If you recently edit your configure.php files, or perhaps moved your site to a different directory or server, then you need to review and update your configuration.
Read the FAQ and online tutorials on the site Zen Cart ™ for assistance.
[B]Additional Information: includes / configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set[/B]

I've highlighted the "Additional information" section, which says that your DIR_FS_CATALOG value needs 'adjustment'.