Skip to content

Instantly share code, notes, and snippets.

@fedorovvldmr
Last active October 15, 2021 13:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedorovvldmr/df1b43709931277af3bc1dd3fd5152c5 to your computer and use it in GitHub Desktop.
Save fedorovvldmr/df1b43709931277af3bc1dd3fd5152c5 to your computer and use it in GitHub Desktop.
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