Articles in this section

How to install Redis in Plesk for Linux

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to install Redis in Plesk for Linux (system or docker container)?

Answer

  1. 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-redis package, 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.

     

     

  2. Install Redis:

     

    On the system
    1. Install the redis package:

      • for CentOS/RHEL-based distributions:

        # yum install redis

      • for Debian/Ubuntu-based distributions:

        # apt install redis

    2. Start redis:

      # systemctl start redis-server

    3. Set redis to start on boot:

      # systemctl enable redis-server

     

    In a Docker container
    1. Log in to Plesk.

    2. Install the Docker extension from the Extensions catalog.

    3. Once installed, open Docker and click Run Container.

    4. In the search box, search for redis.

    5. Click on redis and proceed with the installation.

 

Was this article helpful?

Comments

4 comments
Date Votes
  • E: Unable to locate package plesk-php83-redis

    0
  • systemctl start redis-server and systemctl enable redis-server doesn't work in Almalinux 9.

    systemctl start redis and systemctl enable redis works fine.

    1
  • 2 comands to update on this tutorial:

    Instart redis on lamalinux  
    sudo systemctl start redis

    put it on start
    systemctl enable redis   

    0
  • Hi 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.

    1

Please sign in to leave a comment.