Hello,
Fresh install of SuiteCRM 7.4.3 running on CENTOS.
I am trying to understand how crontab works with SuiteCRM Scheduler.
I see that I am supposed to copy the line at the bottom of the Scheduler:
Note: In order to run SuiteCRM Schedulers, add the following line to the crontab file:
What is the crontab file? There is none on my server. Does this line goes into cron.php?
Do I have to configure a cron task on my server to run this file?
TIA,
~eric
- find out under which user your webserver runs by typing:
ps aux | grep apache
If it doesn’t list anything, try alternatively
ps aux | grep httpd
You get a listing like this:
root 2494 0.0 0.3 326372 13264 ? Ss 19:01 0:00 /usr/sbin/apache2 -k start
www-data 2513 0.0 0.1 326404 7012 ? S 19:01 0:00 /usr/sbin/apache2 -k start
www-data 2514 0.0 0.1 326404 7012 ? S 19:01 0:00 /usr/sbin/apache2 -k start
www-data 2515 0.0 0.1 326404 7012 ? S 19:01 0:00 /usr/sbin/apache2 -k start
www-data 2516 0.0 0.1 326404 7012 ? S 19:01 0:00 /usr/sbin/apache2 -k start
www-data 2517 0.0 0.1 326404 7012 ? S 19:01 0:00 /usr/sbin/apache2 -k start
jan 4169 0.0 0.0 13212 964 pts/2 S+ 19:14 0:00 grep --colour=auto apache2
Look in the second line, it shows the user as the first entry called: www-data.
Alternatively you might see users like “www” or “httpd” or “apache”
- adapt the crontab for this user by typing the command:
sudo crontab -u wwwuser -e
where wwwuser is the user you found in step 1 (www-data, www, httpd, or apache)
- adapt the file by adding a new line at the bottom and save
Your cron job should now be running.
I have this working.
I created a file name ‘crontab’ in the root of my SuiteCRM webserver file structure and added the line from SuiteCRM Scheduler to it.
Then I created a Cron Task in my web server Control Panel to run webserverroot/cron.php every 1 minute.
Emails are being received and Cases are being generated.
Thanks jansiero for the advice. BTW, my www user is ‘apache’
~eric