Install mcrypt module in php7.2 on WHM server

Инсталиране на mcrypt модул в php7.2 на WHM сървър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

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://

We test whether the module is successfully installed :

/opt/cpanel/ea-php72/root/usr/bin/php -m|grep mcrypt

Thats it!