After installing Yii2, most of the time you can get this type of error message:
1 |
mcrypt php extension required |
Yii2 uses PHP extension mcrypt 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.
To solve this problem type the following command in your terminal:
1 2 |
sudo php5enmod mcrypt sudo /etc/init.d/apache2 restart |
after running the above commands, you are all set.
Happy Coding!