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:
- PHP extension for Redis
Switch to root user or run the following commands as sudoers.
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)
Pick a editor of your choice copy the following and replace
[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
Enable Redis in Faveo
After Redis installation is complete, follow these instructions to configure Redis with Faveo.