<legend id='Ns8Oq'><style id='Ns8Oq'><dir id='Ns8Oq'><q id='Ns8Oq'></q></dir></style></legend>

  • <i id='Ns8Oq'><tr id='Ns8Oq'><dt id='Ns8Oq'><q id='Ns8Oq'><span id='Ns8Oq'><b id='Ns8Oq'><form id='Ns8Oq'><ins id='Ns8Oq'></ins><ul id='Ns8Oq'></ul><sub id='Ns8Oq'></sub></form><legend id='Ns8Oq'></legend><bdo id='Ns8Oq'><pre id='Ns8Oq'><center id='Ns8Oq'></center></pre></bdo></b><th id='Ns8Oq'></th></span></q></dt></tr></i><div id='Ns8Oq'><tfoot id='Ns8Oq'></tfoot><dl id='Ns8Oq'><fieldset id='Ns8Oq'></fieldset></dl></div>
          <bdo id='Ns8Oq'></bdo><ul id='Ns8Oq'></ul>
      1. <small id='Ns8Oq'></small><noframes id='Ns8Oq'>

        <tfoot id='Ns8Oq'></tfoot>

        cakephp 3 Cron Job 在 cpanel 中不起作用

        cakephp 3 Cron Job not working in cpanel(cakephp 3 Cron Job 在 cpanel 中不起作用)
          <bdo id='ITPzd'></bdo><ul id='ITPzd'></ul>
        • <small id='ITPzd'></small><noframes id='ITPzd'>

          <legend id='ITPzd'><style id='ITPzd'><dir id='ITPzd'><q id='ITPzd'></q></dir></style></legend>
            <tfoot id='ITPzd'></tfoot>
            <i id='ITPzd'><tr id='ITPzd'><dt id='ITPzd'><q id='ITPzd'><span id='ITPzd'><b id='ITPzd'><form id='ITPzd'><ins id='ITPzd'></ins><ul id='ITPzd'></ul><sub id='ITPzd'></sub></form><legend id='ITPzd'></legend><bdo id='ITPzd'><pre id='ITPzd'><center id='ITPzd'></center></pre></bdo></b><th id='ITPzd'></th></span></q></dt></tr></i><div id='ITPzd'><tfoot id='ITPzd'></tfoot><dl id='ITPzd'><fieldset id='ITPzd'></fieldset></dl></div>

                  <tbody id='ITPzd'></tbody>

                • 本文介绍了cakephp 3 Cron Job 在 cpanel 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在 cakephp 3 shell 脚本中实现 cron 作业,但它在 cpanel 中不起作用.

                  I am trying to implement cron job in cakephp 3 shell script but it is not working in cpanel.

                  下面是我的 cron 工作代码 blog 是我的 cakephp 3 文件夹

                  below is my cron job code blog is my cakephp 3 folder

                  cd/home/mmentert/public_html/abc.com/blog &&bin/cake 你好主

                  cd /home/mmentert/public_html/abc.com/blog && bin/cake hello main

                  Cakephp 3 shell 类文件

                  Cakephp 3 shell class file

                  namespace AppShell;
                  use CakeConsoleShell;
                  use AppControllerUsersController;
                  class HelloShell extends Shell {
                  public function main() {
                      $userinfo=new UsersController();
                      $data=$userinfo->useremail();
                      $this->out($data);
                    }
                  }
                  

                  推荐答案

                  我假设您使用的是共享主机,CakePHP 3 Docs 上建议的语法不适用于共享主机,这对我有用

                  I assume you are using shared hosting, the syntax suggested on CakePHP 3 Docs does not work for shared hosting, this is what worked for me

                  php -q -d register_argc_argv=on /home/public_html/bin/cake.php app main
                  

                  cake.php 文件请使用您自己的路径

                  Please use your own path for cake.php file

                  • -q --no-header 安静模式.禁止 HTTP 标头输出(仅限 CGI).
                  • -d --define 为 php.ini 中允许的任何配置指令设置自定义值

                  希望有所帮助.

                  这篇关于cakephp 3 Cron Job 在 cpanel 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <tbody id='FhINA'></tbody>

                  <small id='FhINA'></small><noframes id='FhINA'>

                  <i id='FhINA'><tr id='FhINA'><dt id='FhINA'><q id='FhINA'><span id='FhINA'><b id='FhINA'><form id='FhINA'><ins id='FhINA'></ins><ul id='FhINA'></ul><sub id='FhINA'></sub></form><legend id='FhINA'></legend><bdo id='FhINA'><pre id='FhINA'><center id='FhINA'></center></pre></bdo></b><th id='FhINA'></th></span></q></dt></tr></i><div id='FhINA'><tfoot id='FhINA'></tfoot><dl id='FhINA'><fieldset id='FhINA'></fieldset></dl></div>
                      <bdo id='FhINA'></bdo><ul id='FhINA'></ul>
                      <tfoot id='FhINA'></tfoot>

                      • <legend id='FhINA'><style id='FhINA'><dir id='FhINA'><q id='FhINA'></q></dir></style></legend>