Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install mcrypt to PHP 7.2 in Debian-based systems
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