Install REDIS with Plesk Onyx
This is a quick guide on how to install both the Redis PHP extension as well as the daemon via SSH on a Plesk Onyx webserver.
REDIS provides memory caching for frequently accessed objects.
How to install the plugin:
Log in to the command line via SSH as the ROOT user and run the following commands line-by-line.
yum groupinstall 'Development Tools' yum install tcl wget
Debian and Ubuntu
apt-get install build-essential apt-get install tcl wget
Download and Compile latest Redis 4:
wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.tar.gz cd redis-stable/ make distclean make make test make install
Install your Redis-server Service:
cd utils/ ./install_server.sh
Allow memory overcommit
This will allow REDIS to use more memory than it has been allocated by Plesk if required.
echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf && sysctl -p
echo never > /sys/kernel/mm/transparent_hugepage/enabled
Start and test your Redis service
This will ensure REDIS starts when your server boots and checks to ensure the installation completed successfully.
systemctl start redis_6379
systemctl status redis_6379