• Resolved graeme-mac

    (@graeme-mac)


    In our environment we have 2 HTTP servers. We plan to install wordpress on both servers but connect to the one database.

    The blog will support multiple authors. Is there any issue or conflicts by hosting the files on 2 servers but connecting to one DB?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Ewww..

    And no, just put the correct information into the wp-config.php files on each installation of WordPress.

    However, if these are supposed to be the same site (instead of two different sites), then they should be pointing to the same domain/URL. WordPress works the interface based on the URL. That is, one URL should direct you to one site or the other each time, but always the same URL. Since WordPress doesn’t use sessions, it should be fine, all the operations are 1 request = 1 response. Caching plugins might cause a problem in that case, as would the object caching (which is disabled by default).

    If they are different sites, make sure they have different prefixes in the wp-config.php file. No issues there at all.

    Thread Starter graeme-mac

    (@graeme-mac)

    Yes, it would be the same site. I am thinking we would use a directory example.com/blog

    We’re looking at using wordpress within an enterprise set up. We have to load balancers that distribute the traffic to the two http servers.

    Me being the marketer and not the IT guy i am hearing that as long as the files on both http are identical other than caching plugins we should be ok?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Yes, it should work as long as you’re not using any plugins or other code which stores data in the local filesystem (which caching plugins do).

    Now, if they are also sharing a filesystem on a third server (like the DB server), then those will probably work fine as well.

    Thread Starter graeme-mac

    (@graeme-mac)

    Excellent, thanks for all the replies and advice!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Two Servers – One Database’ is closed to new replies.