Disclaimer: This guide was automatically translated by AI from the German original. Please verify commands and technical details before using them.
Back to overview: Debian guides
sudo apt update && sudo apt upgrade -y
Install Redis:
sudo apt install redis-server -y
Check the Redis status:
systemctl status redis
If Redis is not running, start it:
sudo systemctl start redis
Open the Redis configuration file:
nano /etc/redis/redis.conf
Change supervised no to:
supervised systemd
Save the file and restart Redis:
sudo systemctl restart redis
Check whether Redis works:
redis-cli ping
If everything is correct, PONG should be displayed.
Install the PHP Redis extension:
sudo apt install php-redis -y
Restart the web server:
systemctl restart apache2
Install and activate the Redis Object Cache plugin in WordPress. Go to Settings → Redis and click Connect.
Run the following command to check whether Redis is active:
redis-cli monitor