【问题标题】:cron job not works for codeigniter 2.2.5cron 作业不适用于 codeigniter 2.2.5
【发布时间】:2016-07-22 05:51:53
【问题描述】:

我在 cpanel 中使用了以下命令来运行 cron,但它不起作用。 PHP版本:5.4

Codeigniter 版本:2.2.5

请帮帮我!!

/usr/local/bin/php /home/username/public_html/subdomain/index.php controller function

【问题讨论】:

  • 什么是“不工作”?有任何错误信息吗?
  • 我检查了错误日志没有错误,我必须通过 cron 发送电子邮件和短信,实际上如果我直接点击 url 那么它已经工作了....有什么方法可以看到错误?

标签: php codeigniter cron cpanel


【解决方案1】:

试试这个命令

 wget -O - -q -t 1 http://domain.com/subdomain/index.php/controller/function    

【讨论】:

    猜你喜欢
    • 2013-02-06
    • 2014-04-26
    • 1970-01-01
    • 2015-10-29
    • 2013-03-05
    • 2017-11-12
    • 2012-04-28
    • 1970-01-01
    • 2011-01-15
    相关资源
    最近更新 更多