How can I debug a PHP CRON script that does not appear to be running?

前端 未结 3 1570
庸人自扰
庸人自扰 2020-12-11 21:10

I am trying to setup a CRON job using PHP, but am not having any luck so far.

I am following this tutorial: PHP - Create a Cron Job with PHP (dead link)

I ha

3条回答
  •  天命终不由人
    2020-12-11 21:38

    Little checklist:

    1. Is your cron running -> u2ix [checked]
    2. Permissions to use cron [checked]
    3. Does your script run in the shell [checked i hope]
    4. Run a litte script that shows you the environmet in your cron (-> env) / it is never the same as in your shell :-)
    5. after execute your php-creat-cronjob-script check with corntab -l the crontab

    -- do you get mail from your cron ?

提交回复
热议问题