Last active
October 5, 2021 09:40
-
-
Save fedorovvldmr/6608e7c4f6cde7fdb95920fa708c4778 to your computer and use it in GitHub Desktop.
How to install mcrypt to PHP 7.2 in Centos 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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