JustFans docs

Guide

Crons setup

In order for the platform to function fully, including payment processing, emails, offers, and more, you need to set up the following cron job.

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:run via CLI.
  • Check that storage/logs/cronjobs.log exists 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.