Redis Installation on Ubuntu with Plesk Panel
Introduction
This document will list steps on how to install Redis, Supervisor and Worker for Faveo.
We will install following dependencies in order to make Redis work:
- Redis
- PHP extension for Redis
- supervisor
Switch to root user or run the following commands as sudoers.
sudo su
Install Redis and PHP redis extension.
apt-get install redis-server
Start, Enable and restart the Redis-service
systemctl start redis-server
systemctl enable redis-server
Install and Configure Supervisor
apt-get install supervisor
Copy paste the below configuration.( Change the directories according to your configuration)
nano /etc/supervisor/conf.d/faveo-worker.conf
Pick a editor of your choice copy the following and replace "–DOMAINNAME–"
[program:faveo-Horizon]
process_name=%(program_name)s
command=/opt/plesk/php/8.1/bin/php /var/www/vhosts/"–DOMAINNAME–"/httpdocs/artisan horizon
autostart=true
autorestart=true
user=root
redirect_stderr=true
stdout_logfile=/var/www/vhosts/"–DOMAINNAME–"/httpdocs/storage/logs/horizon-worker.log
Restart the Supervisor to reread the new configuration.
systemctl restart supervisor
To check the Status of workers use the below command
supervisorctl
Enable Redis in Faveo
After Redis installation is complete, follow these instructions to configure Redis with Faveo.