简体   繁体   English

CRON作业未执行php -f

[英]CRON job not executing php -f

I'm trying to have a PHP script run once daily (at midnight, server time) in order to update a few files on my website with new data. 我试图让PHP脚本每天运行一次(服务器时间午夜),以便用新数据更新网站上的一些文件。 Here is my cPanel: 这是我的cPanel:

在此处输入图片说明

I followed the exact perimeters specified in the example (0 0 * * * - will rune scripts every midnight), and I have the correct file path. 我遵循了示例中指定的确切周长(0 0 * * *-将在每个午夜启动符文脚本),并且我具有正确的文件路径。 Am I using php -f correctly? 我是否正确使用php -f

尝试/ usr / bin / php(或在安装了PHP二进制文件的任何地方)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM