• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Install Redis with docker on a centos 7 server

KlausZ

Basic Pleskian
Server operating system version
CentOS 7.9.2009
Plesk version and microupdate number
18.0.43
Hi,
i want to install redis on a centos 7 server with docker. I follow this instruction: How to Optimize WordPress with Redis and Docker
Some Questions about that: I install bitnami\redis
Have i to change the port to 6379? The value redis_master_host: Is this the local IP: 127.0.0.1 or what?
Is there a problem because the image os is debian 9?

Thanks, Klaus
 
I have the following setup on my Ubuntu servers with Wordpress websites.
What you need to do:
  • Install docker/docker-compose on your server. See the docker-compose.yml under this message.
  • Install the "Redis Object Cache" Plugin.
  • Edit wp-config.php and add the required variables under this message.
  • When you're done, check if the plugin is connected with your redis via the wordpress admin backend. See image.
  • Confirm with the Query Monitor plugin that your queries are cached. See image.

YAML:
# docker-compose.yml
version: '2'

services:
  redis:
    container_name: myRedisContainer
    restart: always
    image: 'redis:latest'
    mem_limit: 64m
    ports:
      - "127.0.0.1:50000:6379"
    command: >
      --requirepass ChangePasswordHere

PHP:
# wp-config.php
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PASSWORD', 'ChangePasswordHere');
define('WP_REDIS_PORT', '50000');

1657006156822.png1657006445177.png
 
i want to host wp sites too :) how you avoid get hacked ? first time using plesk i am on trial.
thanks you for your kind help
 
Back
Top