【问题标题】:Exception in installing yii2安装yii2的异常
【发布时间】:2014-12-11 15:45:16
【问题描述】:

当我尝试使用 composer 安装 Yii2 时

我有这个例外

Script yii\composer\Installer::postCreateProject handling the post-create-project-cmd event terminated with an exception

  [Exception]                                    
  The mcrypt PHP extension is required by Yii2.  

我该如何解决这个问题?

【问题讨论】:

  • 即使我的机器上已经安装了 mcrypt,我也会收到该错误消息。我只是忽略它,项目工作正常......

标签: composer-php yii2


【解决方案1】:

您必须先将 mycrypt 安装到 php.ini 中。

查看以下链接: http://php.net/manual/en/mcrypt.installation.php

【讨论】:

  • 运行 php5enmod mcrypt;服务 apache2 重启
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-09-25
  • 1970-01-01
  • 2013-09-10
  • 1970-01-01
  • 2015-01-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多