Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    218
    Plugin Contributions
    0

    Default Different host Same database?

    Is it possible for me to have an install of ZC on two different hosts. And have them use the same database?

    I'm mainly doing this so both sites can use their own template.

    I looked at Multi Sites but that has sites on the SAME host or pointing to the same host.

    For me
    site1.com is on Visi and has the database
    site2com is on godaddy and I want to point it to the database of site1.com

    Everything will be the same admin wise I just need these sites separated by host and files and then link the databases.

    Thanks!
    Joelle

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Different host Same database?

    If you were to do that, you'd be forcing your customers to wait a lengthy period of time for your server to do all its database queries across a (slower-than-if-it-were-on-same-server) internet connection. While it "can" be done, it's *strongly not recommended*, and has several caveats.
    Doing it requires editing your configure.php files to point the DB_xxxx settings to the other server, and you also need to open the other server's firewall to allow direct remote access to the server's database from internet connections. All your database data will be transmitted in clear text, with no encryption protection. All your admin settings will be shared exactly between both sites, so you will have limited branding differentiation available. There will be various other limitations too, related to order processing.
    .

    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.

 

 

Similar Threads

  1. New install - different host - fine until database
    By Lyon in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 15 Oct 2009, 06:01 PM
  2. Moving site contents to different host, but keeping the same database?
    By yelow in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Feb 2009, 05:10 PM
  3. Problem with same host but different domains
    By alisonken1 in forum General Questions
    Replies: 2
    Last Post: 7 Mar 2008, 04:18 AM
  4. Multiple sites sharing the same MySQL database but different information
    By Cucaracha in forum Installing on a Windows Server
    Replies: 5
    Last Post: 1 Feb 2007, 01:38 PM

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