Issue in installing php7.2-mcrypt

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

    @praneeth-nidarshan has covered mostly all the steps, except some:

    • Check if you have pear installed (or install):

    $ sudo apt-get install php-pear

    • Install, if isn't already installed, php7.2-dev, in order to avoid the error:

    sh: phpize: not found

    ERROR: `phpize’ failed

    $ sudo apt-get install php7.2-dev

    • Install mcrypt using pecl:

    $ sudo pecl install mcrypt-1.0.1

    • Add the extention extension=mcrypt.so to your php.ini configuration file; if you don't know where it is, search with:

    $ sudo php -i | grep 'Configuration File'

提交回复
热议问题