Issue in installing php7.2-mcrypt

前端 未结 5 681
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 01:15

As I\'m trying to load mcrypt extension module from PHP 7.2.X version.
So I tried to make use of PECL library that is compatible to the current version of my PHP, in ord

5条回答
  •  有刺的猬
    2020-11-29 02:06

    I followed below steps to install mcrypt for PHP7.2 using PECL.

    1. Install PECL

    apt-get install php-pecl

    1. Before installing MCRYPT you must install libmcrypt

    apt-get install libmcrypt-dev libreadline-dev

    1. Install MCRYPT 1.0.1 using PECL

    pecl install mcrypt-1.0.1

    1. After the successful installation

    You should add "extension=mcrypt.so" to php.ini

    Please comment below if you need any assistance. :-)

    IMPORTANT !

    According to php.net reference many (all) mcrypt functions have been DEPRECATED as of PHP 7.1.0. Relying on this function is highly discouraged.

提交回复
热议问题