Last active
October 15, 2021 13:44
-
-
Save fedorovvldmr/df1b43709931277af3bc1dd3fd5152c5 to your computer and use it in GitHub Desktop.
How to install mcrypt to PHP 7.2 in Debian-based systems
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
wget https://pecl.php.net/get/mcrypt-1.0.3.tgz | |
tar xvf mcrypt-1.0.3.tgz | |
cd mcrypt-1.0.3 | |
sudo apt install php-dev -y | |
phpize | |
./configure --with-php-config=/usr/bin/php-config7.2 | |
make | |
sudo 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