【问题标题】:the Encrypt library requires the Mcrypt extension in setup of nginx with php7.2Encrypt 库在使用 php7.2 设置 nginx 时需要 Mcrypt 扩展
【发布时间】:2019-02-27 23:05:46
【问题描述】:

在 ubuntu18 上安装 nginx 和 php 7.2 服务器后,报错“The Encrypt library requires the Mcrypt extension.”它是一个 codeignitor 框架。

【问题讨论】:

    标签: php nginx php-7.2


    【解决方案1】:

    mcrypt 自 7.2 起已从 php 移至 pecl

    您仍然可以安装它。

    安装依赖

    gcc make autoconf libc-dev pkg-config
    install the lib itself
    

    libmcrypt-dev 我假设已安装 php7.2 和 pecl,因此您只需使用 pecl 安装 mcrypt-1.0.1(或代表的任何版本)

    pecl install mcrypt-1.0.1
    

    【讨论】:

      猜你喜欢
      • 2018-11-05
      • 2019-01-19
      • 2014-09-26
      • 2017-05-11
      • 2014-06-29
      相关资源
      最近更新 更多