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

Transfer to new server

Views: 3,276

Results 21 to 28 of 28
17 Jun 2014, 2:24 PM
#21
gmonnet avatar

gmonnet

New Zenner

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

Transfer to new server

I've see, but I don't know it's false...

<?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://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/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/~digiscr2/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', '/~digiscr2/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', '/~digiscr2/shop/cache');

// EOF
17 Jun 2014, 2:25 PM
#22
frank18 avatar

frank18

Deceased

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

Re: Transfer to new server

lat9:

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'.

Actually my bad - looking at what I earlier posted above (...under time pressure...)
17 Jun 2014, 2:39 PM
#24
gmonnet avatar

gmonnet

New Zenner

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

Re: Transfer to new server

It's not possible to make only a backup and restore of entire account on Cpanel?

17 Jun 2014, 2:40 PM
#25
balihr avatar

balihr

Totally Zenned

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

Re: Transfer to new server

gmonnet:

I've see, but I don't know it's false...

// * 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', '/~digiscr2/shop/');

define('DIR_FS_SQL_CACHE', '/~digiscr2/shop/cache');

// EOF

Maybe I just need some sleep, but these two lines seem bad to me... That's not a valid path...

Try changing those lines to:
```php
define('DIR_FS_CATALOG', '/home/digiscr2/public_html/');
define('DIR_FS_SQL_CACHE', '/home/digiscr2/public_html/');

Also, check and make sure your database is named the same way (in your NEW cPanel, go to MySQL Databases and see if you have a database named digiscr2_shop). It should be there, but check anyway.

Regards,
Leonard

17 Jun 2014, 5:05 PM
#26
gmonnet avatar

gmonnet

New Zenner

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

Re: Transfer to new server

If I make that, I have a blank page...

Yes the database is correct...

:-(

17 Jun 2014, 5:18 PM
#27
drbyte avatar

drbyte

Sensei

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

Re: Transfer to new server

gmonnet:

It's not possible to make only a backup and restore of entire account on Cpanel?

Yes, as long as your domain-name is already pointed to the new cPanel server AND your PHP/MySQL/Apache versions are compatible.

You can build the correct configure.php files for your new site by running zc_install and choosing "Install". This will create new configure.php files which will work on your server ... and will wipe out the database. Then restore the database from backup again.

19 Jun 2014, 6:39 PM
#28
balihr avatar

balihr

Totally Zenned

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

Re: Transfer to new server

OK, so, just to make things clear for everyone else... In the spirit of ZC community, I've offered the OP to take a quick look at his files since stuff like this are usually incredibly simple to fix.

OP's site is using some commercial modules (ionCube encrypted) and are probably locked to a domain which in this case was changed. No error logs were created, just a blank page. After completely removing the encrypted modules from the system, site is working just fine.
The issue has nothing to do with Zen Cart or with changing servers, but instead with using encrypted modules and changing domain name.

So, a word of advice for anyone else out there wanting to use encrypted commercial modules: first of all, be prepared for issues. And second - in case of any issues, you're limited to support from the company you've purchased your modules from...

A word of advice for me: next time you offer free help, try not spending 5 hours on it... :bangin: