CRON Job

The software needs cron jobs to automate tasks like checking account statuses, managing escrow, monitoring subscriptions, and renewing user perks.

How to create CRON job:

Step 1: Open the terminal on your hosting platform. If you are using cPanel, you can proceed by copying and pasting the instructions provided in Step 3 into your Cron Jobs tab.

Step 2: Execute the command crontab -e in your terminal.

crontab -e

Step 3: Insert either cron job A to automate escrow every minute, or cron job B for twice daily scheduled runs without automated escrow. Ensure to replace YOURWEBSITE DOMAIN PATH with your specific domain path and customize the frequency based on your needs:

  • Cron job A:

* * * * * /usr/local/bin/php /home/YOURDOMAINPATH/artisan schedule:run >> /dev/null 2>&1n
  • Cron job B:

0 0,12 * * * /usr/local/bin/php /home/YOURDOMAINPATH/artisan schedule:run >> /dev/null 2>&1

Step 4: (If using terminal): To view all local cron jobs, enter the command:

crontab -l

Step 5: If configuring through cPanel, the setup should resemble the following. Select the smallest available time interval provided by your hosting service, ideally every 1 minute if supported. Adjust YOURDOMAINPATH accordingly, ensuring it includes your hosting username as specified in your directory.

Last updated