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.