【发布时间】:2013-11-28 06:08:29
【问题描述】:
我的 php cli 使用 ZF2 (php 5.4.16) 在我的本地 (windows) 机器上完美运行。
我在 linux 上安装了 ZF2 和 Zend Server,分别安装了 php5-cli (php 5.4.22)。导入我的项目后,我尝试运行控制台脚本:php public/index.php update
这不起作用,当我在 linux 中运行它时,它也不会输出任何内容(错误等)。问题是版本错误吗?如何在我的 linux 机器上使用 Zend Server 安装的本机 php cli(如果有意义的话)?
编辑:
看起来 php 在 index.php 中的这一行之后停止工作:
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
所以我的 php cli 无法运行 zend 应用程序。如何确保 cli 正常运行?
【问题讨论】:
-
没有错误信息?您是否启用了显示错误消息?
标签: php zend-framework zend-framework2 command-line-interface