BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
creativeleaf
loading
Popular Searches
  • wordpress
  • how do i add new domains or subdomains in plesk?
  1. Home
  2. Framework
  3. Laravel
  4. How to configure queues and cron jobs in Laravel hosting?
Updated on February 9, 2026
Framework
  • Folder icon closed Folder open iconNode.Js
    • How do I deploy a Node.js app on your hosting?
    • What Node.js Versions Are Supported?
    • How Do I Configure Environment Variables in Shared Hosting?
    • Can I Run Multiple Node.js Apps Under One Account?
    • How to fix “503 Service Unavailable” in Node.js hosting?
  • Folder icon closed Folder open iconPython
    • Do You Support Python and Django Applications?
    • How Do I Deploy a Django App on Your VPS or Shared Server?
    • How to set up Gunicorn and Nginx for Django?
    • How Do I Manage Static and Media Files in Django Hosting?
    • Can I use virtual environments with Django hosting?
  • Folder icon closed Folder open iconLaravel
    • How to Deploy a Laravel Project on BigCloudy Shared Hosting ?
    • How Do I Set Up .env and Manage Environment Variables in Laravel?
    • Is SSH access available for running artisan commands?
    • How to configure queues and cron jobs in Laravel hosting?
    • Can I connect Laravel with a remote MySQL server?

How to configure queues and cron jobs in Laravel hosting?

Introduction

Laravel provides powerful built-in features for handling background jobs through queues and automating recurring tasks using the scheduler (cron jobs). These tools are essential for improving application performance by offloading time-consuming processes such as sending emails, processing uploads, and running scheduled maintenance tasks. Even on shared hosting environments on BigCloudy, you can fully utilize Laravel queues and cron jobs with the correct configuration. This guide walks you through setting up queue workers and scheduled tasks step by step, ensuring your Laravel application runs smoothly and efficiently.

Part 1: Configuring Laravel Queues

Laravel uses background queues for tasks like sending emails, processing uploads, or running slow database actions, so they don’t block the user experience.

1. Set Queue Driver in .env

In your .env file, set the queue driver. On shared hosting, it’s common to start with database or sync: QUEUE_CONNECTION=database

bigcloudy laravel queues

2. Create Queue Table

Run the following command to create the jobs table (via SSH or local terminal):

				
					php artisan queue:table


				
			
				
					php artisan migrate
				
			


This creates a new table called
jobs in your database.

3. Run the Queue Worker (via CLI)

Laravel’s queue worker listens for jobs and processes them:

				
					php artisan queue:work
				
			


On shared hosting, you can run this with a cron job (explained below).


Part 2: Setting Up Laravel Cron Jobs

Laravel’s scheduled tasks are defined in the app/Console/Kernel.php file and run using a single cron entry.

1. Define Scheduled Tasks in Laravel

Add scheduled tasks to the schedule method in app/Console/Kernel.php:

				
					protected function schedule(Schedule $schedule)
{
    $schedule->command('queue:work --stop-when-empty')->everyMinute();
    $schedule->command('my:custom-task')->daily();
}

				
			


2. Add Cron Job in cPanel

  • Log into cPanel
  • Go to Cron Jobs
bigcloudy cron tab


• Add a new cron job with the following command (run every minute):

				
					* * * * * cd /home/username/public_html && php artisan schedule:run >> /dev/null 2>&1
				
			
bigcloudy laravel crontab

Replace /home/username/public_html with your app’s full path.

This cron runs every minute and Laravel takes care of the rest.

Conclusion

Laravel queues and cron jobs make it possible to handle background processing and scheduled tasks efficiently, even on shared hosting environments. By using supported queue drivers like database and configuring a single system cron job, you can run queue workers and scheduled tasks reliably without needing a dedicated server.

BigCloudy Laravel hosting supports both cron jobs and SSH access on eligible plans, giving developers the flexibility to manage Laravel queues, automate tasks, and optimize application performance. With the proper setup, your Laravel application can handle background jobs smoothly while keeping the user experience fast and responsive.

Need Help?

If you require assistance at any point while using this guide, our Support Team is here to help:

  • mail Email: support@bigcloudy.com
  • website Submit a support ticket

FAQ

What happens if the cron job is not configured correctly?

If the cron job is missing or incorrectly configured, scheduled tasks and queued jobs will not run automatically, which may cause delays in background processing.

What are Laravel cron jobs used for?

Laravel cron jobs are used to automate scheduled tasks such as sending emails, clearing logs, processing queued jobs, or running custom commands at specific intervals.

Do I need SSH to configure queues?

SSH access is helpful but not always required. You can generate the queue table locally and upload the database changes. However, SSH access makes it easier to run queue workers and Artisan commands directly on the server.

How do queue workers run on shared hosting?

On shared hosting, queue workers are typically run using a cron job that executes the php artisan queue:work or queue:work --stop-when-empty command at regular intervals.

Where do I add the cron command?

You add it in the hosting control panel under Cron Jobs.

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Powered By BigCloudy

Cloud Hosting

cPanel Hosting
Laravel Hosting
Node.js Hosting
Magento Hosting
Django Hosting
WordPress Hosting
WooCommerce Hosting
Reseller / Agency Hosting

Cloud VPS & Server

Linux VPS Hosting
Windows VPS Hosting
Forex VPS Hosting
SEO VPS Hosting
n8n VPS Hosting
Dedicated Server

Addons

Domain
SSL Certificates
AI Website Builder
Affiliate Program

Company

About Us
Contact Us
Blog
Knowledge Base
Sitemap
Status

Legal

Privacy Policy
Terms of Service
Refund Policy
Affiliate TOS

Follow Us

Facebook X-twitter Instagram Linkedin

Copyright Ⓒ 2026 BigCloudy Internt Services Pvt. Ltd. All Rights Reserved