• I am installing WordPress on my enviroment which you can see on the picture in the link below.

    IMAGE

    Well a few things I have been thinking about is:

    • How does sessions work from those two web servers? Will it have to difference sets of session on each server? In that case, is there someway to make the sessions work using Redis or something, since then I can setup a shared Redis connection so they all share the same connection? Or are there any alternative for this?
    • How can I make the file uploads work correctly on both web servers, like if you upload a image on web server 1, then it should also be available on web server 2. I was thinking using NFS (Network File System) to mount a directory from the storage server into the upload folder on both web servers, then all files uploaded to wordpress from example web server 1 will then be putted on the storage server and are accessible from both web servers. Would that work or do you have any better solutions for this
Viewing 1 replies (of 1 total)
  • Thread Starter marktopper

    (@marktopper)

    The part of making the MySQL server working for both of them is quite easy, but for those who want to know:

    • You will have to allow outgoing connections on both web servers to the MySQL server.
    • You will have to allow ingoing connections from both web servers to the MySQL server.
    • Then you define the MySQL Hostname for your WordPress installation on both web servers to be the IP of your MySQL server

    And boom! Both of your web servers are now using the MySQL server, so if you make a new post, they will show up on both web servers.

Viewing 1 replies (of 1 total)

The topic ‘Install on special server environment? [Scaling]’ is closed to new replies.