How to install PHP 7.4 mcrypt module in Cpanel Server

mcrypt is a PHP module, that was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. mcrypt is removed from PHP, now it is available as a PECL module at

https://pecl.php.net/package/mcrypt

To install mcrypt on Cpanel Server, first, install libmcrypt-devel package with yum

To install the module with PHP 7.4, run

After installation, you can verify from command line with

If you want to install with another PHP version, change ea-php74 with your PHP version.

After installing, restart Apache and php-fpm service

To verify, create a phpinfo() file on your website. Go to the URL, and search for mcrypt on the page. You will see

PHP 7.4 mcrypt install

Back to Cpanel Server

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *