如何调试不会出现在运行一个PHP脚本CRON? [英] How can I debug a PHP CRON script that does not appear to be running?
本文介绍了如何调试不会出现在运行一个PHP脚本CRON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图安装使用PHP cron作业,但我没有到目前为止,运气好的话。
I am trying to setup a CRON job using PHP, but am not having any luck so far.
我下面这个教程: <击> PHP - 创建一个cron作业用PHP < /击> (死链接)
I am following this tutorial: PHP - Create a Cron Job with PHP (dead link)
我已经创建了正确的权限脚本文件,但剧本没有得到处理。
I have created the script file with the correct permissions, but the script is not being processed.
任何想法?
推荐答案
小清单:
- 是您的cron运行 - > u2ix [检查]
- 权限使用cron [检查]
- 请问你的脚本在shell中运行[选中我希望]
- 运行豆蔻脚本,显示你在cron中的environmet( - > ENV)/它的从不的等同于你的shell :-)
- 执行与corntab你的php-科瑞-的cronjob脚本检查后-l在crontab
- Is your cron running -> u2ix [checked]
- Permissions to use cron [checked]
- Does your script run in the shell [checked i hope]
- Run a litte script that shows you the environmet in your cron (-> env) / it is never the same as in your shell :-)
- after execute your php-creat-cronjob-script check with corntab -l the crontab
-
你从你的cron收取邮件?
-- do you get mail from your cron ?
这篇关于如何调试不会出现在运行一个PHP脚本CRON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文