Forums / Basic Configuration / Problem with Moving Zen (Followed the Help Desk instruction)

Problem with Moving Zen (Followed the Help Desk instruction)

Locked
Results 1 to 16 of 16
This thread is locked. New replies are disabled.
17 Oct 2006, 01:33
#1
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Problem with Moving Zen (Followed the Help Desk instruction)

I recently tried to move a zen cart installation to an entirely new server with a new url.

I edited both configuration pages and fixed the sessions via sql, yet now when I head to the new URL the page says:

'Not Found
The requested URL /zc_install/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. '

Any suggestions? I am not looking to re-install Zen, just move the existing installation over, yet it seems to think it is a fresh copy?

Thanks, Alex
17 Oct 2006, 04:31
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Did you rename or delete the /zc_install at some point?

If missing, reload from the same version that your site is ... if upgrading, reload the whole directory as it sounds like you have a bad file or corrupt file ...
17 Oct 2006, 05:48
#3
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

The ship was functional and installed on another domain, so I deleted the zc_install folder.

Do I need to actually re-install zen again? I thouhgt it could just be moed?

Thanks, Alex
17 Oct 2006, 05:55
#4
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

The Shop was also functional and installed :P
17 Oct 2006, 06:02
#5
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Please post your includes/configure.php without your passwords
17 Oct 2006, 07:27
#6
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

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


// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'http://headsonic.com');
define('HTTPS_SERVER', 'https://headsonic.com');

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

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', '/home2/badbubba/public_html/headsonic/forum');

// * 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/
define('DIR_FS_CATALOG', '/home2/badbubba/public_html/headsonic/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . '/home2/badbubba/public_html/headsonic/uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'badbubba_headson');
define('DB_SERVER_PASSWORD', 'XXXXXXXXXX);
define('DB_DATABASE', 'XXXXXXXXX);
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// 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', 'database');
define('DIR_FS_SQL_CACHE', '/home2/badbubba/public_html/headsonic/cache');

?>


All it seems to want to do is re-direct to the install non stop.

Thankyou!
17 Oct 2006, 07:49
#7
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

Re: Problem with Moving Zen (Followed the Help Desk instruction)

These are incorrect:

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . '/home2/badbubba/public_html/headsonic/uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . '/home2/badbubba/public_html/headsonic/email/');


You shouldn't have /home2/badbubba/public_html/headsonic/ in them... its only the last part you need. DIR_FS_CATALOG which you defined here:

// * 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/
define('DIR_FS_CATALOG', '/home2/badbubba/public_html/headsonic/');


Fills in the paths up to that point for you.. so with the way you've defined it its looking for e-mail templates in /home2/badbubba/public_html/headsonic//home2/badbubba/public_html/headsonic/email/

So.. to fix it change it to this:

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/');
17 Oct 2006, 07:56
#8
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Thanks for picking that up.

Have fixed this in includes and admin/includes manually, www.headsonic.com still tries to re-direct to zc_install for some reason.

I am using an existing database from an old site, the samefiles (transferred with flashfxp) and I did fix the sessions thing in mysql.
17 Oct 2006, 07:58
#9
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

Re: Problem with Moving Zen (Followed the Help Desk instruction)

did you also change the configure file in admin/includes/configure.php? you need to change that in order for it to work
17 Oct 2006, 08:03
#10
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Yeah I did, here it is.



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


// Define the webserver and path parameters
// Main webserver: eg, http://localhost - should not be empty for productive servers
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.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
*/
define('HTTP_SERVER', 'http://headsonic.com');
define('HTTPS_SERVER', 'https://headsonic.com');
define('HTTP_CATALOG_SERVER', 'http://headsonic.com');
define('HTTPS_CATALOG_SERVER', 'https://headsonic.com');

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

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/
define('DIR_FS_ADMIN', '/home2/badbubba/public_html/headsonic/admin/');
define('DIR_FS_CATALOG', '/home2/badbubba/public_html/headsonic/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . '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', 'zen_');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'XXXXXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXXXXXX');
define('DB_DATABASE', 'badbubba_headsonic');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// 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', 'database');
define('DIR_FS_SQL_CACHE', '/home2/badbubba/public_html/headsonic/cache');

?>





Thanks Again
18 Oct 2006, 00:22
#11
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Still can't seem to get it happening, any suggestions?
18 Oct 2006, 00:41
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Are you looking at the file:
/admin/includes/configure.php

on the server?


Look at your database in phpMyAdmin ...

Does the database name, username and password match what you have in the /admin/includes/configure.php on the server?

Do the table names have the prefixes of:
zen_


Check the file, on the server, for:
/includes/configure.php

Are the settings correct for the paths, database, username and password?
18 Oct 2006, 01:20
#13
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Yes, the database information is correct.
20 Oct 2006, 06:31
#14
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

-bump-

Trying to work this out asap.
20 Oct 2006, 06:44
#15
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

Re: Problem with Moving Zen (Followed the Help Desk instruction)

the only other things i can think of are make sure 100% that the path you have placed is the correct one. I prefer to use a PHP script to find the path of a file for me so i can reference is later. Instructions can be found here: http://www.joejoomla.com/wiki/index.php?title=JoeJoomla_Wiki:Finding_The_Absolute_Path

If that doesn't work.. upload the zc_install folder and just run through the steps
03 Nov 2006, 07:53
#16
alexblom avatar

alexblom

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: Problem with Moving Zen (Followed the Help Desk instruction)

Very Strange - moved it to a different server and it instantly worked. Just need to iron out the bugs now.

-Thanks to all.