Applicable to:
- Plesk for Linux
Question
How to install Redis in Plesk for Linux (system or docker container)?
Answer
-
Install Redis PHP extension for the PHP version you are planning on using for the websites:
1.1. Connect to your Plesk server via SSH.
1.2. Install the
plesk-phpXX-redispackage, where XX corresponds to the PHP version (e.g.plesk-php83-redis):-
for CentOS/RHEL-based distributions:
# yum install plesk-phpXX-redis
-
for Debian/Ubuntu-based distributions:
# apt install plesk-phpXX-redis
1.3. Log in to Plesk.
1.4. Go to Tools & Settings > PHP Settings > X.X.XX FPM Application.
1.5. Verify that redis is checked.
1.5. Apply the changes.
-
-
Install Redis:
On the system-
Install the redis package:
-
for CentOS/RHEL-based distributions:
# yum install redis
-
for Debian/Ubuntu-based distributions:
# apt install redis
-
-
Start redis:
# systemctl start redis-server
-
Set redis to start on boot:
# systemctl enable redis-server
In a Docker container-
Install the Docker extension from the Extensions catalog.
-
Once installed, open Docker and click Run Container.
-
In the search box, search for redis.
-
Click on redis and proceed with the installation.
-
Comments
E: Unable to locate package plesk-php83-redis
systemctl start redis-server and systemctl enable redis-server doesn't work in Almalinux 9.
systemctl start redis and systemctl enable redis works fine.
2 comands to update on this tutorial:
Instart redis on lamalinux
sudo systemctl start redisput it on start
systemctl enable redisHi everyone.
Does anyone know how to install Redis on Plesk and then change the configuration so it works with SOCKET instead of IP?
Thanks a lot.
Please sign in to leave a comment.