Issue in installing php7.2-mcrypt

前端 未结 5 718
伪装坚强ぢ
伪装坚强ぢ 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:09

    sudo apt-get install php-pear php7.x-dev
    

    x is your php version like 7.2 the php7.2-dev

    apt-get install libmcrypt-dev libreadline-dev
    pecl install mcrypt-1.0.1 
    

    then add "extension=mcrypt.so" in "/etc/php/7.2/apache2/php.ini"

    here php.ini is depends on your php installatio and apache used php version.

提交回复
热议问题