Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Problems from Configuring to Work with new domain

Problems from Configuring to Work with new domain

Views: 1,329

Results 1 to 4 of 4
22 May 2012, 8:10 PM
#1
reachesfar avatar

reachesfar

New Zenner

Join Date:
Apr 2012
Posts:
6
Plugin Contributions:
0

Problems from Configuring to Work with new domain

I installed zencart on a domain but decided I needed it to be under a different domain. I found documentation on how to modify the two configure.php files in includes/ and admin/includes/ folders to reflect the new domain. See instructions I followed below. I made a copy of all the zencart folders and placed them inside the folder where the new domain resides. so the new path www.(newdomain.com)/zencart worked with my zencart coming up. The problem I'm encountering is now when I try to add a product and upload a image file, the image file is being uploaded to the old folder location not the new location where the zencart files were copied and the image is not found. Have tried to find solution but haven't. Hopefully someone out there can help me. Thank you.

Below are the instructions I followed to change the zencart domain. It came from this site: http://kb.siteground.com/article/How_to_configure_Zen_Cart_to_work_with_a_new_domain.html

In order to configure Zen Cart to work properly with another domain, you should modify the two configure.php files in includes/ and admin/includes/ folders to reflect the new domain.

The settings that should be changed in includes/configure.php are:

HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com:
define('HTTP_SERVER', 'http://newdomain.com');

If you are using SSL you should also modify:

HTTPS_SERVER - change this to:
define('HTTPS_SERVER', 'https://newdomain.com');

In admin/includes/configure.php you should modify:

HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com:
define('HTTP_SERVER', 'http://newdomain.com');
HTTP_CATALOG_SERVER - again, this should be changed to your new domain name:
define('HTTP_CATALOG_SERVER', 'http://newdomain.com');

If you are using SSL, you should also change:

HTTPS_SERVER - change this to:
define('HTTPS_SERVER', 'https://newdomain.com');
HTTPS_CATALOG_SERVER - change this to:
define('HTTPS_CATALOG_SERVER', 'https://newdomain.com');

23 May 2012, 2:54 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problems from Configuring to Work with new domain

I can't speak to the accuracy of instructions you've found on some site elsewhere. I prefer to follow the instructions written by Zen Cart folks, such as here:
http://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server

Sounds like your paths are still wrong in your admin config file. Probably the paths pointing to xx_CATALOG_xx have the old stuff in them.

23 May 2012, 5:55 AM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Problems from Configuring to Work with new domain

reachesfar:

Below are the instructions I followed to change the zencart domain. It came from this site: http://kb.siteground.com/article/How_to_configure_Zen_Cart_to_work_with_a_new_domain.html

Those instructions are incomplete. The ONLY instructions worth following are those written by the Zencart team, as found here:
http://www.zen-cart.com/content.php?142-i-want-to-move-my-zen-cart-installation-to-another-host-or-a-different-server

One of the problems with 3rd party upgrade instructions as that they rarely bother to update the instructions after they've been written and there could be important changes to be aware of. Another problem is that 3rd party instructions often tend to be system/server specific, and don't mention possible problems that occur with different systems (Windows vs Linux based, for example).

I've even seen some 3rd party instructions that have gotten things so 'wrong' that it's caused me to cringe.

So please folks, when upgrading, don't take shortcuts by trying to use 'cut down' instructions from other sites, sooner or later they will lead you astray.

Cheers
Rod

23 May 2012, 12:26 PM
#4
reachesfar avatar

reachesfar

New Zenner

Join Date:
Apr 2012
Posts:
6
Plugin Contributions:
0

Re: Problems from Configuring to Work with new domain

Thanks Rod for the response.

I tried to revert back to my old domain. I had renamed the 2 config files config.old just in case I needed to reverse what I had done. So I reinstated the old config files which pointed to the original domain. I now type in the pate https://www.andrewreach.com/zencart and my zencart site comes up. The problem I'm having now is that when I try to log into my admin it takes me to the old domain https://www.baumwollarchives.com page that says "Page not found". Can you help me to troubleshoot logging back into the administration panel? Thanks so much