Cron Job
- Setup Cron Job Via cPanel
- Setup Cron Job Via SSH
- Ensure Cron Job Is Configured
- Setup Cron Job Via Plesk
- Common Cron Job Commands
cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.
Every modern application with decent features must have cron job configured in order tasks to be executed in the background.
Concord CRM requires a properly configured cron job, follow the steps explained below to configure cron job for your installation.
For the examples below, make sure to replace /path/to/concord/
with the path to your installation.
On some shared hosting you may need to specify the full path to the PHP executable (for example, /usr/local/bin/php81
or /opt/alt/php81/usr/bin/php
instead of php
)
Did you know that if you are using our hosted solution, the cron job is automatically configured for you during installation? Learn more
Setup Cron Job Via cPanel
Login to cPanel and search for "Cron Job", and add the following cron job command as shown below:
php /path/to/concord/artisan schedule:run >> /dev/null 2>&1
Setup Cron Job Via SSH
If you are managing the server via SSH, you will need to configure the cron job from the command line, the cron job must be configured for the user responsible for managing the web server, in most cases, it's the www-data user.
sudo crontab -u www-data -e * * * * * php /path/to/concord/artisan schedule:run >> /dev/null 2>&1
Ensure Cron Job Is Configured
The ensure that your cron job is properly configured, in your Concord CRM dashboard, navigate to Settings->System->System Info and check the Last Cron Run row.
If the Last Cron Run row value resets every one minute, this means that you have successfully configured the cron job for you Concord CRM installation.
Setup Cron Job Via Plesk
- Click Websites & Domains.
- Click the domain/subdomain you installed Concord CRM.
- Click Scheduled Tasks.
- Click Add Task.
- Choose Run a PHP script.
- In the script path enter your Concord CRM installation path and append artisan, for example: /path/to/concord/artisan.
- In the with arguments field enter: schedule:run
- Use PHP version: 8.1
- Cron Style: * * * * *
Common Cron Job Commands
Below you can find common cron job commands that are confirmed to work for commonly used hosting providers, in most cases the commands are confirmed by our customers and if your hosting provider is listed below, they should work in your environment as well.
Are you hosting Concord CRM on a commonly used hosting provider and you can confirm that the cron job command works perfectly fine? Send us the command via our support area so we can add it here and other customers can benefit from it.
SiteGround
/usr/local/php81/bin/php-cli /path/to/concord/artisan schedule:run >> /dev/null 2>&1