php 7 Mcrypt PHP extension required

Ali Bedaer picture Ali Bedaer · Apr 4, 2016 · Viewed 79.4k times · Source

hello guys l have installed php7 from this link and this link too.

but when i try to run a Laravel based project there is an error coming up as follows

Mcrypt PHP extension required.

I tried to locate mcrypt.so and change the path in mycrpt.ini but i still get the same error i only get this error i Laravel projects

Answer

Ankit Sompura picture Ankit Sompura · Apr 4, 2016

Had the same issue - PHP7 missing mcrypt.

This worked for me in Ubuntu Please try below commands.

sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade

Then restarts apache

sudo service apache2 restart

Hope this commands helps!