Cron does not execute files

I have a php file to execute every minute, but when I run it on the command line, it runs as expected, but when set for a cron job, it doesn't start. The following are the things I have tested:

  • cron service
service crond status
crond (pid  183872) is running...

      

  1. Checked cron execution logs:
May 21 00:27:01 spartans CROND[194123]: (root) CMD (/usr/bin/php  /home/dev/my.php)
May 21 00:27:01 e2e CROND[194122]: (root) MAIL (mailed 84 bytes of output but got status 0x004b#012)

      

  1. CronJob list in crontab -e
*/1 * * * *  /usr/bin/php /home/dev/my.php

      

My request is to help me find the error when things go wrong. I started cron maintenance a couple of times.

+3


source to share





All Articles