Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2012
    Posts
    6
    Plugin Contributions
    0

    Default 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...ew_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');

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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?...fferent-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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problems from Configuring to Work with new domain

    Quote Originally Posted by reachesfar View Post
    Below are the instructions I followed to change the zencart domain. It came from this site: http://kb.siteground.com/article/How...ew_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?...fferent-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

  4. #4
    Join Date
    Apr 2012
    Posts
    6
    Plugin Contributions
    0

    Default 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 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 www.baumwollarchives.com page that says "Page not found". Can you help me to troubleshoot logging back into the administration panel? Thanks so much

 

 

Similar Threads

  1. problems configuring for new ssl
    By doxie in forum General Questions
    Replies: 7
    Last Post: 31 Oct 2008, 09:05 PM
  2. problems with configuring MZMT
    By Kruna in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 21 Oct 2006, 04:58 PM
  3. Configuring Zen To Work With Phpbb
    By DrByte in forum General Questions
    Replies: 168
    Last Post: 7 May 2006, 12:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR