How to install Redis on a Cloudlinux server with CageFS enabled?
1. 1. The Redis installation steps are the same as on any RHEL-based system:
# yum install epel-release # yum install redis --enablerepo=epel
1.2. Once done, start the Redis service via:
# systemctl start redis.service
# systemctl enable redis
1.3. You can check Redis’s status by running the following:
# sudo systemctl status redis.service
2. What differs is that if CageFS is used on the server, you'll need to add the Redis package to CageFS skeleton:
# cagefsctl --addrpm redis
# cagefsctl --force-update
3. Once you confirm that Redis is indeed running, test the setup with this command:
# redis-cli ping
Note 1: The above commands will make Redis available from the CageFS inside; however, it still uses shared storage for multiple websites. The Redis ACL has to be used to address this case.
Check the Redis Quickstart page for more information.
Note 2: Redis Support for mod_hostinglimits is deprecated. Check more about it in our documentation.