• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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