Setting up Laravel Supervisor on Linux: A Step-by-Step Guide

ArjunAmrutiya
2 min readDec 8, 2023

Introduction:
Laravel Supervisor is a powerful process monitoring tool that ensures your Laravel application’s background tasks, such as queue processing and task scheduling, run smoothly and reliably. In this guide, we’ll walk through the steps to set up Laravel Supervisor on a Linux server, enabling you to manage your Laravel application’s tasks efficiently.

Prerequisites

Before we begin, make sure you have the following:

  • A Laravel application deployed on a Linux server.
  • SSH access to your server.
  • Composer installed on your server.

Step 1: Install Supervisor

SSH into your server and install Supervisor using the package manager specific to your Linux distribution. For example, on Ubuntu, use:

sudo apt-get update
sudo apt-get install supervisor

Step 2: Configure Supervisor

Create a new Supervisor configuration file for your Laravel application:

sudo nano /etc/supervisor/conf.d/laravel-worker.conf

Add the following configuration, adjusting the paths and values as needed:

--

--

ArjunAmrutiya
ArjunAmrutiya

Written by ArjunAmrutiya

👋 Hey there! I'm Arjun Amrutiya, a passionate web developer and blogger who loves all things PHP, Laravel and Vue.js. Welcome to my Medium account!

No responses yet