Skip to content

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

Arjunladybird edited this page Apr 25, 2018 · 21 revisions

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

Supervisor Configuration

Install 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

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:*

To Check Supervisor status use the below command

systemctl status supervisor.service

Enable Redis configuration in Faveo

Step 1: Open Admin panel and go to Queues icon.

Step 2: Open Queues, You will see Redis option in last. Click on Activate.

These steps will configure Faveo with Redis

Advance Configuration

Redis advanced configuration can be done in app/Config/queue.php.

There are 4 parameters in redis configuration section.

Driver : It has to be redis
Connection : It can be connection type (default)
Queue : Name of the queue. You can define the name of the queue
Expire : Queue expiring time (by default 60)

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