<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 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Is PHP or PHP based web framework stateful or stateless?(PHP 或基于 PHP 的 Web 框架是有状态的还是无状态的?)
                  How to parse django style template tags(如何解析 django 样式模板标签)
                  What is a good setup for editing PHP in Emacs?(在 Emacs 中编辑 PHP 的好设置是什么?)
                  How to check whether specified PID is currently running without invoking ps from PHP?(如何在不从 PHP 调用 ps 的情况下检查指定的 PID 当前是否正在运行?)
                  What#39;s the difference between escapeshellarg and escapeshellcmd?(escapeshellarg 和escapeshellcmd 有什么区别?)
                  php in background exec() function(php 后台 exec() 函数)

                    <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>