Skip to content

Install and configure Redis, Supervisor and Worker for Faveo on Ubuntu 16.04

Arjunladybird edited this page Jan 25, 2019 · 21 revisions

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

Install Redis

sudo apt-get install redis-server

Install PHP extension for Redis

sudo apt-get install php-redis

Start, Enable and restart the Redis-service

sudo systemctl start redis-server.service

sudo systemctl restart redis-server.service

sudo systemctl enable redis-server.service

Install and Configure Supervisor

sudo apt-get install supervisor

Copy paste the below configuration.( Change the directories according to your configuration)

vi /etc/supervisor/conf.d/faveo-worker.conf

[program:faveo-worker]
process_name=%(program_name)s_%(process_num)02d
command=php  /var/www/faveo/faveo-helpdesk/artisan queue:work redis --sleep=3 --tries=3
autostart=true
autorestart=true
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/faveo/faveo-helpdesk/storage/logs/worker.log

[program:faveo-recur]
process_name=%(program_name)s_%(process_num)02d
command=php  /var/www/faveo/faveo-helpdesk/artisan queue:work redis --queue=recurring --sleep=3 --tries=3
autostart=true
autorestart=true
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/faveo/faveo-helpdesk/storage/logs/worker.log

[program:faveo-Reports]
process_name=%(program_name)s_%(process_num)02d
command=php  /var/www/faveo/faveo-helpdesk/artisan queue:work redis --queue=reports --sleep=3 --tries=3
autostart=true
autorestart=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/faveo/faveo-helpdesk/storage/logs/reports-worker.log

[program:faveo-Horizon]
process_name=%(program_name)s
command=php /var/www/faveo/faveo-helpdesk/artisan horizon
autostart=true
autorestart=true
user=www-data
redirect_stderr=true
stdout_logfile=/var/www/faveo/faveo-helpdesk/storage/logs/horizon-worker.log

Restart the Supervisor

service supervisor restart

sudo supervisorctl reread

sudo supervisorctl update

Start your worker

Replace the worker name according to your configuration

sudo supervisorctl start faveo-worker:*
sudo supervisorctl start faveo-recur:*

To Check Supervisor status use the below command

systemctl status supervisor.service

Enable Redis in Faveo

After Redis installation is complete, follow these instruction to configure Redis with Faveo. Configuration of Redis with Faveo

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally