Skip to content

Instantly share code, notes, and snippets.

@fedorovvldmr
Last active October 5, 2021 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fedorovvldmr/6608e7c4f6cde7fdb95920fa708c4778 to your computer and use it in GitHub Desktop.
Save fedorovvldmr/6608e7c4f6cde7fdb95920fa708c4778 to your computer and use it in GitHub Desktop.
How to install mcrypt to PHP 7.2 in Centos 7
yum install wget php72w-devel gcc make autoconf libmcrypt libmcrypt-devel -y
wget https://pecl.php.net/get/mcrypt-1.0.3.tgz
tar xvf mcrypt-1.0.3.tgz
cd mcrypt-1.0.3
phpize
./configure --with-php-config=/usr/bin/php-config
make
make install
add "extension=mcrypt" to php.ini file
restart php
cd ..
rm -rf mcrypt-1.0.3 mcrypt-1.0.3.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment