Install mcrypt module in php7.2 on WHM server
Hello,
Since mcrypt version 7.1 is no longer supported by PHP developers,
and 7.2 can no longer be installed.
In this post I will share how we can install mcrypt on the WHM server in php7.2.
We execute the following commands :
Install EPEL repo :
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
We install the necessary libraries for mcrypt :
yum install libmcrypt yum install libmcrypt-devel
Install mcrypt via PECL :
/opt/cpanel/ea-php72/root/usr/bin/pecl install channel://pecl.php.net/mcrypt-1.0.1
We test whether the module is successfully installed :
/opt/cpanel/ea-php72/root/usr/bin/php -m|grep mcrypt
Thats it!