You can get the exact cron command path out of Admin > Settings > Payments area.
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Some hosting panels might require the cron command in a different format. If needed, you can run it with absolute paths or specific PHP versions:
* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
Other hosting panels with have you set the task interval out of their own UI, so you might end up using a command that doesn't include the * * * * * prefix.
Ensure Cron Jobs Are Running
Cron jobs are crucial for payments, emails, and other scheduled tasks.
- Ensure they’re not returning any errors by manually running
cd /path-to-your-project && php artisan schedule:runviaCLI. - Check that
storage/logs/cronjobs.logexists within 24h since the task has been setup. - Keep the scheduler running every minute. It also handles queue cleanup, interrupted video-processing checks, and delayed media-moderation callback checks.
Info
For more info on setting up cron jobs:
• cPanel - Add a Cron Job
• Plesk - Scheduling Tasks
• For VPS servers, add the line to /etc/crontab. Depending on your distribution, you might need to specify the user as well.