This question already has an answer here:
I'm trying to install all the package's of a Laravel project on a Virtual Machine. I've installed everything but during the composer install action show me the error MCrypt PHP Exstension Required.
But.. Mcrypt is installed! I've also do this actions:
locate mcrypt.ini
locate mcrypt.so
and writed in mcrypt.ini the mcrypt.so php5 path. so what contain now the mcrypt.ini file? just this text:
exstension=/usr/lib/20131226/mcrypt.so
also used: php5enmod mcrypt
and service apache2 restart
without any results..
</div>
Do you have enabled your mcrypt extension?
Try with this command, it will tell you all the php extensions you have installed and wich one of them is active and wich one is not
dpkg --get-selections | grep php
If mcrypt is not enabled then try again to enable it with
sudo php5enmod mcrypt