Mcrypt

PHP 7.2 CentOS Pecl Mcrypt

  1. Run following commands:
    1
    2
    3
    yum install php-devel  pear1u  libmcrypt-devel
    pecl channel-update pecl.php.net
    pecl install mcrypt-1.0.1
    
  2. You will be prompted for libmcrypt prefix, hit enter:
    1
    libmcrypt prefix? [autodetect] :
    
  3. Finish installation by adding entry to php ini & restart php-fpm:
    1
    2
    echo 'extension=mcrypt.so' >> /etc/php.ini
    systemctl restart php-fpm