【问题标题】:TYPO3 scheduler doesn't schedule?TYPO3 调度器没有调度?
【发布时间】:2012-10-09 01:06:25
【问题描述】:

我已经安装了 TYPO3 计划,但它没有计划。我每 5 分钟设置一个 cron 作业来运行 TYPO3 调度程序,并在我的系统日志中向我打印以下行:

10 月 6 日 14:00:01 服务器 /USR/SBIN/CRON[31775]: (root) CMD (/usr/local/bin/php /var/www/typo3/cli_dispatch.phpsh 调度程序)

因此我认为 cron 作业正在运行,但在我的 TYPO3 后端我看不到时间表。 TYPO3 脚本似乎没有正确启动。当我从 shell 运行 cli_dispatch.phpsh 时,它给了我许多奇怪的错误。该脚本具有所需的每个用户权限。感谢您的帮助!

当我使用 sh cli_dispatch.phpsh 调度程序从终端开始时,它会给出:

sh cli_dispatch.phpsh scheduler 
cli_dispatch.phpsh: line 2: ?php: Datei oder Verzeichnis nicht gefunden
cli_dispatch.phpsh: line 3: /120120.tgz: Keine Berechtigung
cli_dispatch.phpsh: line 4: ajax.php: command not found
cli_dispatch.phpsh: line 5: ajax.php: command not found
cli_dispatch.phpsh: line 6: syntax error near unexpected token `c'
cli_dispatch.phpsh: line 6: `*  (c) 2005-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)'

在启用 fastcgi 的情况下是否可以正常工作?

当我启动 cli_dispatcher 脚本时,PHP 给出了版权信息,但在 TYPO3 后端,甚至在协议中也没有任何内容。在设置检查中,我在 TYPO3 中手动引导的最后日期,但不是来自 cronjob 或我的终端。

我启用了 cli 模式,但 php -v 没有提供任何版本信息或 cli 提示?

配置命令 'configure' '--enable-fastcgi' '--enable-force-cgi-redirect' '--with-gettext' '--with-mysql' '--with-dom=/usr/ include/libxml2/libxml' '--enable-so' '--with-pcre-regex' '--prefix=/usr' '--datadir=/usr/share/php5' '--with-libdir=lib ' '--includedir=/usr/include' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-filter' '-- enable-session' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-inline-optimization' '--enable-zend-multibyte' '--disable-rpath' '--enable-cli' '--with-zlib' '--enable-soap' '--enable-mbstring' '--with-jpeg-dir=/usr' '--with-png-dir=/ usr'''--with-gd'''--with-ttf'''--enable-gd-native-ttf'''--with-freetype-dir=/usr/lib'''--with-curl=/usr /local/curl' '--with-readline'

我还偶然在我的php.ini 中启用了cgi.check_shebang_line

【问题讨论】:

  • 如果您发布错误消息会很有帮助。
  • @pcampe:没有任何错误信息?或者你的意思是当我手动启动的时候?我已经发布了我的日志文件,并且 cron 作业似乎正在运行!
  • 因此,如果您运行/usr/bin/php /path/to/typo3/cli_dispatch.phpsh scheduler,它根本不会返回任何内容?请使用echo $? 检查返回码。您检查了apachephp 错误日志吗?
  • 顺便说一句,你用的是什么TYPO3 版本?
  • Typo3 是 4.6.9 - 4.7.1。它在终端中给了我错误,但我使用 shell 来启动脚本? bash 有 shebang 吗?嗯,我认为我的 php 搞砸了。我将 fastcgi 与 lighttpd 一起使用,但我无法编译 php 以从 cli 模式运行?它与 fastcgi 一起工作,但不知何故不在 cli 模式下。我的 php 是 5.3.8 并且我启用了 cli killswitch。设置检查正常 cli_backend 用户已找到。

标签: typo3 fastcgi scheduler


【解决方案1】:

您可以在调度器模块中选择Setup Check,查看调度器是否被触发。

【讨论】:

  • 不高兴。我可以手动启动计划,但不能在 shell 中,也不能从似乎正在运行的 cron 作业中查看我的日志文件。
  • 但是设置检查是否正常?
  • 你是怎么修好的?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多