How to setup Redis access on cPanel hosting?

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

HASH must be replaced by the cPaneles login name.


Revision #1
Created 25 October 2023 12:31:41 by Judit Pásztor
Updated 25 October 2023 12:32:15 by Judit Pásztor