Issue
How do I install Redis on a CloudLinux server with CageFS enabled?
Environment
- Cloudlinux
- CageFS
Solution
1.1. The Redis installation steps are the same as on any RHEL-based system:
# yum install epel-release
# yum install redis --enablerepo=epel1.2. Once done, start the Redis service via:
# systemctl start redis.service
# systemctl enable redis1.3. You can check Redis’s status by running the following:
# sudo systemctl status redis.service
For Cloudlinux 9 / 10 you can use an alternative way to install Redis: https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/rpm/
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
PONG
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 out more about it in our documentation.
Useful Links
- https://redis.com/blog/getting-started-redis-6-access-control-lists-acls/
- https://redis.io/topics/quickstart
- https://docs.cloudlinux.com/cloudlinuxos/deprecated/#redis-support-for-hostinglimits
- https://cloudlinux.zendesk.com/hc/en-us/articles/22546812983964-How-to-Remove-Redis-on-CloudLinux-OS
Comments
2 comments
Is this article still up to date with regard to this one:
https://cloudlinux.zendesk.com/hc/en-us/articles/4412539520402-Is-it-possible-to-add-Redis-to-CageFS-with-isolate-data-for-each-hosting-account-
To avoid misleading support requests with countless server hosts I suppose it might be better to take this article off.
Well, the only solution is to use their Redis ACL. I have both articles to reflect it.
Thanks for your input!
Please sign in to leave a comment.