-
Notifications
You must be signed in to change notification settings - Fork 564
Installation of Redis on Ubuntu 16.04 LTS
Redis is written in ANSI C and runs on POSIX systems such as Linux, Mac OS X and Solaris. It can be accessed by applications through its client API library. Redis, which has a relatively rich set of data types when compared to many key-value data stores, holds its database entirely in memory, using the disk only for persistence.
Using Redis with Faveo will maximize the performance with its queue feature. You can keep track of sent mails, unsent mails and delayed mails. Redis has also another feature of caching.
Open command terminal and type following command
$ sudo apt-get update && sudo apt-get install redis-server -y
Once the packages and dependencies are installed correctly, type this command
$ service redis-server start
$ redis-cli ping
Change the directory to /opt/faveo/faveo-helpdesk and run the PHP artisan commands
$ cd /opt/faveo/faveo-helpdesk
$ php artisan config:clear
$ php artisan cache:clear
$ php artisan route:clear
$ php artisan view:clear
Activate the Redis from the admin panel by selecting the queue settings and activating Redis from the option
Implementing supervisor
Supervisor is a process monitor for the Linux operating system, and will automatically restart your queue:listen or queue:work commands if they fail.
After activating redis we have to install supervisor
$ apt-get install supervisor
Once supervisor is installed then configure it from
$ vi /etc/supervisor/supervisord.conf
by adding the below entries
[program:faveo-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /opt/faveo/faveo-helpdesk/artisan queue:work redis --sleep=3 --tries=3
autostart=true
autorestart=true
numprocs=8
redirect_stderr=true
stdout_logfile=/opt/faveo/faveo-helpdesk/storage/logs/worker.log
A header value of [program:faveo-worker]describes a program with the name of “faveo-worker”. The name is used within client applications that control the processes that are created as a result of this configuration. It is an error to create a program section that does not have a name. The name must not include a colon character or a bracket character. The value of the name is used as the value for the %(program_name)s string expression expansion within other values where specified.
Section Values
process_name : A Python string expression that is used to compose the supervisor process name for this process.
command : The command that will be run when this program is started.
autostart : If true, this program will start automatically when supervisord is started.
autorestart : Specifies if supervisord should automatically restart a process if it exits when it is in the RUNNING state.
numprocs : Supervisor will start as many instances of this program as named by numprocs. Note that if numprocs > 1, the process_name expression must include %(process_num)s
stdout_logfile : Put process stdout output in this file Let’s discuss the switches used in the artisan’s command written in this program.
php /path/to/artisan queue:work --tries=3 --daemon
Tries : This flag defines the maximum number of times a job should be attempted Daemon : Running queue:work with --daemon option forces the queue worker to continue processing jobs without ever rebooting the framework. This results in a significant reduction of CPU usage when compared to the queue:listen command. As daemon queue workers do not restart the framework before processing each job, you should be careful to free any heavy resources before the job finishes.
Once the configuration file has been created, we have to update the Supervisor configuration and start the processes using the following commands:
After configuring run the following command
$ supervisorctl reread
$ supervisorctl update
$ supervisorctl start faveo-worker:*
Did you find it helpful? If not email us on support@faveohelpdesk.com
Installation and Upgrade Guide
- GUI Install Wizard
- Manual Install
- CLI Install
- Server Requirements
- Installation with Apache
- Installation with cPanel
- Cron Job or any Job scheduler
- Faveo Helpdesk Installation on CentOS 7 with Apache on PHP 7.1
- Faveo Helpdesk Installation on CentOS 7 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Apache on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Apache on PHP 7.1
- Migrating Faveo from one server to another
- Configuration of Redis with Faveo
- Install and configure Redis, Supervisor and Worker for Faveo on Ubuntu 16.04
- Install Let’s Encrypt SSL on CentOS 7 Running Apache Web Server
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Ubuntu 16.04 server
- Install and configure Redis, Supervisor and Worker for Faveo on Centos 7
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Centos 7 server
- Faveo Helpdesk Pro Installation on Windows Server 2012 R2
- Install Active Directory Domain Services in Windows Server 2012 R2
- Install Faveo Helpdesk Community on Centos, Ubuntu or Debian Using Script
- Set up automatic backup for Faveo-Helpdesk
Administrator's Guide
- Faveo File Storage
- Change client side theme color
- How to edit or change the footer in faveo
- How to change agent and admin panel Faveo logo link and logo
- Agents
- Departments
- Team
- Priority
- SLA
- Workflow
- Helptopic
- Default Ticket Settings
- Status
- Rating
- Close Ticket Workflow
- Company Settings
- Social Login
- Language
- Security
- Debugging/Logs
- Ban Emails
- Widgets
Agent's Guide
Email Integration
Release & Upgrade Notes
- General Faveo Upgrade Guide Manual
- General Faveo Upgrade Guide Auto
- Upgrade guide to v1.9.2
- Upgrade guide to v1.9.0
- How to update v1.0.7.9 to v1.0.8.0
- Manual Upgrade from v1.0.7.8 to v1.0.7.9
- Faveo Release notes & upgrade guide for V1.0.7.7
- Faveo Release notes & upgrade guide for V1.0.7.5
- Faveo Release notes & upgrade guide for V1.0.7
Known Issues
- The open_basedir restriction in effect
- 404 Not Found
- 500 Internal Server Error
- Bug after update from 1.0.7.4 to 1.0.7.5 or higher version
- Syntax error, unexpected ‘var’(T_VAR), expecting ‘;’
Contribute & Feedback
- Support the community edition
- Contribution Guide
- Faveo Feedback & Customisation
- Help in language translate
Knowledge Base
Third Party Integration
Plugins
API