PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Step 6 of 10
Laravel needs one cron job, and it then decides which of your tasks are due. The usual reason it fails on shared hosting is the wrong PHP version.
In cPanel → Cron Jobs, add one entry with the full path to PHP:
* * * * * cd /home/cpaneluser/laravel-app && /opt/cpanel/ea-php83/root/usr/bin/php artisan schedule:run >> /dev/null 2>&1
Change 83 to your PHP version. On CloudLinux servers the path is usually /opt/alt/php83/usr/bin/php. The config generator writes the line for you, and these cron examples explain each schedule.
Your website and cron can use different PHP versions. With plain php, cron may run an older version, and Laravel stops with "Your Composer dependencies require a PHP version >= 8.2". Use the full path. To check a path in the Terminal:
/opt/cpanel/ea-php83/root/usr/bin/php -v
In Laravel 11 and 12, tasks go in routes/console.php:
use Illuminate\Support\Facades\Schedule;
Schedule::command('reports:send')->dailyAt('08:00');
Schedule::command('backup:run')->daily();
If cron can only run every 5 or 15 minutes, use that interval. Laravel only checks tasks when cron runs, so:
->dailyAt('08:03') may never run with a 5-minute cron, because no run lands on 08:03. Use times like 08:00 or 08:05.->everyMinute() tasks run once per cron run, not every minute.>> /dev/null 2>&1. Put it back afterwards.Remove >> /dev/null 2>&1 for a moment so cron emails you the output, or write the output to a file with >> storage/logs/cron.log 2>&1.
No. One schedule:run entry runs them all.
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Last updated: 8 November 2026. See the update log at the end.Laravel gives you safe defaults...
Last updated: 5 November 2026. See the update log at the end.In a normal PHP-FPM request,...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.