I know this question has been asked many times before in this page but I am still stuck.
I am using a DigitalOcean droplet to run a website whose main function is to send multiple emails a day to several people. One of these emails has to be sent at a specific time on specific days so I figured I can make a cron job to do it automatically.
However, the job is not being ran. I told the script to send me an email for testing purposes and when I am running it manually I do see it. But when I want the cron to send it to me at 6 pm I am not seeing any email on my Inbox.
I have to admit cron jobs are a new thing to me, so I have no idea why it doesn't run. Can you please help me? Thanks!
Here's what I have done:
On Putty I run the following command:
nano /etc/crontab
I added this line to the file:
0 18 * * 1-5 root /usr/bin/php /path/to/phpfile > /path/to/debugfile
Saved and that's all
I stumbled upon this question on this site and someone mentioned to look at var/log/cron.log but I do not see it anywhere on this path, so now I know I did something wrong.