ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Expression Engine install on two distinct IP addresses that uses load balancing

November 26, 2009 5:44pm

Subscribe [1]
  • #1 / Nov 26, 2009 5:44pm

    Jaybe Allanson

    13 posts

    I am setting up a website for a client who has a server that uses load balancing.  You go to one IP (via the site URL) and get randomly assigned to one of two other IPs.  I am trying to set up Expression Engine on both IPs (you have to login to each separately) and have them share the same database.

    I set the site up on one and it works great.  I then moved over all the files via ftp and got the site up on the other IP.  Home page works but I can’t navigate to any inside pages.  I setup a temp version of the site in which I edited the database so all instances of one IP were changed to the other but still no go.

    Just want to see if I am wasting my time.  If it is even possible to have two instances of the same site on two unique IP addresses, accessing the same database?  You don’t see the IPs when you go to the load-balancing URL but because this URL only randomly forwards I can’t actually install EE there.

    Help…

  • #2 / Nov 27, 2009 10:51pm

    Greg Aker

    6022 posts

    Jaybe:

    Load balancing shouldn’t be a problem.  In fact, EngineHosting does it on all of their hosting accounts.  However, the way you are doing it will be problematic, as you have to try to maintain two copies of EE, which includes uploads, native PHP Sessions with some addons, etc.

    You’d be best served using ONE installation of ExpressionEngine on a NAS or SAN storage system mounted at the same place on both web servers.

    ETA:  I’d talk with your hosting provider about central storage options.  Also, since this is something server setup related, I’m going to move this over to “How to.”

    Regards,

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases