Do you want to automate your Vtiger tasks? Are you looking for a way to have your Vtiger workflows run smoothly without any manual input? If so, then you need to set up a CRON. Cron is a system that helps Linux users schedule tasks, and it can be particularly useful for Vtiger users. In this blog post, we will show you how to set up a CRON for Vtiger and explain the benefits of doing so. Stay tuned! 

To use cron, you must first edit the crontab file. This file contains a list of all the cron jobs that are currently scheduled. Each job is represented by a line of text that specifies when the job should be run and what command should be executed. To edit the crontab file, you must have permission from the system administrator. Once you have permission, you can use the crontab command to add, remove, or edit jobs.  

The crontab is a Linux system file that contains a list of the cron jobs. We define our task — bash command, shell script, Python script, etc. schedule in crontab. The crontab format is very simple. It consists of six fields: minute (0-59), hour (0-23), day of the month (1-31), month (1-12 or Jan-Dec), day of the week (0-6 or Sun-Sat), and the command to be executed. The asterisk (*) in each field means that the job will be executed every time unit. For example, if you want to execute a task every hour, you would use “*” in the hour field. You can also use a comma-separated list of values to specify multiple times. For example, if you want to execute a task at 10 and 20 minutes past the hour, you would use “10,20” in the minute field. Finally, you can use a range of values to specify a range of times. For example, if you want to execute a task every hour between 8am and 5pm, you would use “8-17” in the hour field. The cront 

# Check cron service on Linux system 

sudo systemctl status cron.service 

How to handle an error on your cron job ?

A lot of services as workflow is attached to the cron on vtiger. So if you have problems on workflow or importation from csv data or even if you are just complete the installation of the vtiger system, you should configure the cron in your server. You should create a cron job in your system to executevtigercron.phpevery 15 minutes. This will help you to keep your data up to date and error free. If you do not configure the cron, some of the features may not work properly or may not work at all.  


There could be a few different reasons your cron jobs aren’t running as planned. Sometimes it’s a simple case of incorrect syntax in the crontab file. Other times it might be that you’re using the wrong command-line options. And then there are permissions issues to consider. If you’re not sure what might be causing the problem, there are a few steps you can take to troubleshoot your cron jobs. First, check the crontab file for any errors. Then try running the cron job with the ‘-v’ option to get more verbose output. If the problem persists, there are likely some permissions issues at play. In this case, it’s best to consult your system administrator or hosting provider for assistance.  

For Vtiger you may need to make the following changes:

Modify the file on path : vtlib/vtiger/cron.php 

After : 

if (!$this->isDisabled()) { 

Add :  

return true; 

Leave a Comment