On AWS Amazon Linux if you are using php 7.0.X version
then please use this command to install mcrypt library.
[ec2-user@12.123.123.123 ~] sudo yum install php70-mcrypt
Este recurso tornou-se OBSOLETO a partir do PHP 7.1.0 e REMOVIDO a partir do PHP 7.2.0.
Alternativas a este recurso incluem:
Nota:
Esta extensão foi movida para o repositório » PECL e não é mais incluída como parte do PHP.7.2.0.
This is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA which are considered "non-free". CFB/OFB are 8bit by default.
On AWS Amazon Linux if you are using php 7.0.X version
then please use this command to install mcrypt library.
[ec2-user@12.123.123.123 ~] sudo yum install php70-mcrypt