Install and configure Redis, Supervisor and Worker for Faveo on Cent OS 7
This document will list steps on how to install Redis for faveo.
We will install following dependencies in order to make Redis work:
- PHP extension for Redis
yum install redis -y
Install PHP extension
yum install -y php-redis
Start and Enable Redis
systemctl start redis
systemctl enable redis
You can check Redis’s status by running the following:
systemctl status redis.service
Once you’ve confirmed that Redis is indeed running, test the setup with this command:
This should print PONG as the response. If this is the case, it means you now have Redis running on your server and we can begin configuring it to enhance its security.
Install and Configure Supervisor
yum install -y supervisor
Start and Enable Supervisord
systemctl start supervisord
systemctl enable supervisord
Copy paste the below content in supervisor configuration.
Change the directories according to your faveo configuration.
command=php /var/www/faveo/artisan horizon
Restart the Supervisor to reread configuration
systemctl restart supervisord
To check the Status use the below command
systemctl status supervisord
Enable Redis in Faveo
After Redis installation is complete, follow these instructions to configure Redis with Faveo.