Guide: running Laravel scheduled tasks on shared hosting

PepploForum 路 Guides & Tutorials 路 https://forum.demo.pepploweb.com/threads/11-guide-running-laravel-scheduled-tasks-on-shared-hosting
AaravM 路 03 Oct 2026, 08:03 PM
Shared hosting usually gives you cron but no supervisor. Here is a setup that works well:

1. One cron line
Code
* * * * * /usr/local/bin/php /home/USER/app/artisan schedule:run >> /dev/null 2>&1


2. Database queue processed by the scheduler
PHP
Schedule::command('queue:work --stop-when-empty --max-time=50')->everyMinute()->withoutOverlapping();


3. Check it works
Add a test job, wait a minute, then look at the jobs table. Done! 馃殌
VikramR 路 03 Oct 2026, 10:03 PM
Exactly how I do it. The --max-time option keeps it under the cron interval.