# 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.

```bash
* * * * * 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:

```bash
* * * * * 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.

<Info>
For more info on setting up cron jobs:<br />
• [cPanel - Add a Cron Job](https://docs.cpanel.net/cpanel/advanced/cron-jobs/#add-a-cron-job)<br />
• [Plesk - Scheduling Tasks](https://docs.plesk.com/en-US/obsidian/administrator-guide/server-administration/scheduling-tasks.64993/)<br />
• For VPS servers, add the line to `/etc/crontab`. Depending on your distribution, you might need to specify the user as well.
</Info>
