+2 votes
111 views
by Rookie
Hi,

Firstly, you have built a great tool.

We are trying to build a wordpress site which has 2 servers

On First we have installed nginx & php with install options 2

On the second server we installed with server option 0 & then installed the stack -mysql

Now my question where & how should redis be installed? on the first or the second? Also, how would it be configured in wordpress?

Also, if there is any guide that I can follow for installing webinoly in multiple servers for scaling purpose.

Thank you

Regards

1 Answer

0 votes
by Expert
Ideally, in a multi-server configuration, Redis should be installed in a separate server.
by Rookie
Hi,

Currently we were only planning splitting the database. Maybe in the next step we can also split the redis cache. So if we had to on which of the server should we install redis? and is there a command inside webinoly to do the same.

Thank you for taking the time to reply.

Regards
by Expert
Put Redis together with MySQL.

If you install Redis on every PHP server, you will have duplicate queries to MySQL and that's exactly what you are trying to avoid. In other words, two servers can do the same query to store it in their own Redis, that's why should have only one common Redis instance.
by Rookie
Thanks. Is there a command in webinoly to install redis or it is automatically installed with the mysql command? or should I custom install it?
by Expert

Webinoly install Redis automatically after PHP, we don't have a command to install these tools alone, but it's very easy and you can do it manually:

sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt -y install redis-server php-redis
sudo systemctl enable redis-server

Regards.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...