Skip to content

Mcrypt

PHP 7.2 CentOS Pecl Mcrypt

  1. Run following commands:
    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:
    libmcrypt prefix? [autodetect] :
    
  3. Finish installation by adding entry to php ini & restart php-fpm:
    echo 'extension=mcrypt.so' >> /etc/php.ini
    systemctl restart php-fpm