Cron Job
This is essential because it is used for processing incoming transactions as well as other important background tasks.
Complete cron task should be similar to the following. Because of the differences in servers, we have listed out possible linux commands
* * * * * php /path-to-your-installation/artisan schedule:run >> /dev/null 2>&1
* * * * * /usr/local/bin/php /path-to-your-installation/artisan schedule:run >> /dev/null 2>&1
* * * * * /opt/php71/bin/php /path-to-your-installation/artisan schedule:run >> /dev/null 2>&1
The first part * * * * * implies that the command should run every minute
The second part php or /usr/local/bin/php is the full path to the installed php command, you may run the following command whereis php to determine it
The third part /path-to-your-installation/artisan schedule:run is the actually command of Crypterion that runs your background tasks
The text /path-to-your-installation/ from above refers to the absolute path to your installation. (e.g cPanel: /home/<username>/crypterion/... )
The last part of the cron command >> /dev/null 2>&1 is used to disable the output of the cronjob. However, it could be >/dev/null 2>&1 in some servers.
If you are unable to get it running, remove the last part to enable output of the cron command (see above), and check what you get.
Last modified 2yr ago
Copy link