cron.php file is a file belonging to SuiteCRM. It is meant to be launched by the system process called cron, and then it handles individual SuiteCRM schedulers.
To tell cron what it should do, namely, to ask it to run SuiteCRM’s cron.php, you have to add a line in cron’s configuration files. There is more than one of these. Typically you either use the system’s crontab, or a user-specific one, which is what the instruction tells you to do.
There’s no problem with the fact that it’s currently empty. Just go ahead and add the line there. Look for instructions on how to use your system’s editor (vi or nano) to do that.
Any crontab for “www-data” won’t work on your system, because on your system the correct user is the one given in the instruction: apache.
Thank you for your reply. Just two things if I may,
Why would it say that it is empty despite having the cron.php file and opening it shows that it definitely isn’t empty.
How do I insert this line: “* * * * * cd /var/www/suite; php -f cron.php > /dev/null 2>&1” ,
when all I get after I enter this line “sudo crontab -e -u apache” is this:
I feel like I already explained both those things…
You’re telling the system’s cron for the first time, about the existence of something in SuiteCRM called cron.php. You’re asking the system thing to run the SuiteCRM thing.
What you’re seeing is your system’s text editor. It’s probably vi because it’s ugly and really hard to use. I am not going into specifics about that here, try Googling, but the general idea is: either change your system’s text editor to something usable like nano, or get some online instructions on how to do your edit with vi.