How to install mcrypt for PHP 7.2
- By Preneesh AV --
- 09-Oct-2019 --
- 169 Comments
How to install mcrypt for PHP 7.2
With that said, how do we install mcrypt? First, open up a terminal window and install the necessary dependencies with the commands:
sudo apt-get -y install gcc make autoconf libc-dev pkg-configsudo apt-get -y install php7.2-devsudo apt-get -y install libmcrypt-dev
Once the dependencies have been installed, you can install mcrypt with the command:
sudo apt install php-pear
sudo pecl install mcrypt-1.0.1