Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default Can I run a specific store on two different servers?

    Hi, im in the process of moving servers and was wondering if it was possible to run the same zen cart store on two different servers, or if one would work and the other wouldn't?

    Thanks

  2. #2
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Can you run a specific zen cart store on two different servers?

    Yes, you can run the same cart (files and database) on two different servers. However, you can only point DNS to one location. So one of your stores would be at www.yourdomain.com, where the other one would need to be accessed at your server's IP address (or even by using a different domain name). This is very helpful when creating a "test" cart on a new server, without launching the new site til you're ready. Just make sure you change the necessary settings in your configure.php file to handle the URL change.

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

    Default Re: Can you run a specific zen cart store on two different servers?

    Quote Originally Posted by jackie.taferner View Post
    However, you can only point DNS to one location.
    Not true.

    If you do a DNS lookup for google.com (as an example) you'll see that it resolves to no less than eleven different hosts/IPaddresses.

    This is not a new technique, it has been used as a form of load balancing for several decades.

    The difficult part in regards to using this for ZenCart (and other eCommerce sites) is in keeping the data on the different sites syncronised.

    Quote Originally Posted by jackie.taferner View Post
    So one of your stores would be at www.yourdomain.com, where the other one would need to be accessed at your server's IP address (or even by using a different domain name).
    Or by having one site at www.yourdomain.com, and the other at yourdomain.com (without the 'www'). :)

    Cheers
    Rod
    Last edited by RodG; 13 Jun 2012 at 01:22 AM.

  4. #4
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Can you run a specific zen cart store on two different servers?

    I believe kdipaolo is not asking how to spread resources amongst several different servers in a cloud, but rather if they can re-install & test their site on a new server, without disturbing/affecting the original website. The answer is yes, you can, but update configure.php so your "new" site is using the correct URL. The best way to do that is to simply use the new server's IP address. DNS should NOT be changed until they are ready to launch the new website.

  5. #5
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Can you run a specific zen cart store on two different servers?

    Quote Originally Posted by RodG View Post
    Or by having one site at www.yourdomain.com, and the other at yourdomain.com (without the 'www'). :)
    I would not recommend changing the main A Record - some users (myself included) don't always type the www. You leave your "new" site vulnerable to unwanted snooping while you are still developing/testing it. Now you will have a serious issue trying to sync data between the two sites. I think you should leave DNS alone until you are ready to make the hosting/server switch.

    There are also complications with Google seeing two different copies of the website... use an IP address until launch day, so you don't mess up your search engine rankings and/or make your new site visible to the public before you are ready to do so.

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

    Default Re: Can you run a specific zen cart store on two different servers?

    I wasn't looking for an arguement/discussion. I was merely correcting your misinformation in regards to DNS to help prevent further propagation of same.

    Rgds
    Rod

  7. #7
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Can you run a specific zen cart store on two different servers?

    Me neither, just trying to clear it up so kdipaolo can make a fully informed decision. I think for these purposes my original statement is correct, and it is the simplest way to go about the move.

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

    Default Re: Can you run a specific zen cart store on two different servers?

    Quote Originally Posted by jackie.taferner View Post
    There are also complications with Google seeing two different copies of the website....
    This is a myth that has been debunked many times, including by Google itself.

    Cheers
    Rod

 

 

Similar Threads

  1. Can I run my store in a custom iframe?
    By djjonex in forum General Questions
    Replies: 2
    Last Post: 28 Jun 2011, 04:51 PM
  2. Can I run a store without SSL?
    By lindadarling in forum General Questions
    Replies: 7
    Last Post: 24 Dec 2010, 10:05 PM
  3. Can I run two carts on one server with different limits?
    By Rob905 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jun 2009, 03:53 PM
  4. Can I Run Two Stores from One Database
    By adnimas5 in forum Installing on a Windows Server
    Replies: 8
    Last Post: 1 Feb 2007, 09:55 AM

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