Have a Question?
How to setup Redis access on cPanel hosting?
Table of contents
On our web servers, it is possible to use the Redis database with the following parameters:
- uses the storage resources
- max 1 database
- max 100 MB database size
- listening unix domain socketen: /tmp/redis.sock
- password protected, password can be viewed/modifiy here: /var/run/redis/redis.pwd
Setup:
On the cPanel interface, open to the Cron Jobs menu, then add the following task by running it every 5 minutes.
/etc/rc.d/init.d/redis-peruser check >/dev/null 2>&1
After you take the corn job, you have to wait 5-10 minutes to get the password required to use the Redis database.
The password for cPanel storage can be found in the following file:
/home/HASH/.cagefs/var/run/redis/redis.pwd