Have a Question?
How to setup Redis access on Plesk 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:
In the hosting manager interface, in the box at the top left, select Scheduled Tasks and click Add Task.
In the Command field, enter the
/etc/rc.d/init.d/redis-peruser check
command.
In the Run section, you have to select Cron style and then specify the following setting:
*/5 * * * *
In Notify, select Do not notify, then click OK.
After you take the timed task, you have to wait 5-10 minutes, as the password required for using the Redis database will be created within this time.
The password for Plesk storage can be found in the following file:
/.cagefs/var/run/redis/redis.pwd