Mcrypt PHP extension required

If your using MAMP and try to run a Laravel command, you may run into the error:

Mcrypt PHP extension required

Solution is quite easy:

1) Find what version of PHP your using in MAMP

2015-06-05_12-19-03.png

2) Add/Update .bash_profile file

cd ~/
vi .bash_profile

And add the following (while appending the PHP version found in Step 1)

export PATH=/Applications/MAMP/bin/php/php5.6.7/bin:$PATH

3) Save and Restart Terminal

Should be good to go then!

 
4
Kudos
 
4
Kudos

Now read this

Iron.io Queues for Laravel 5.1

I wrote a post about using Iron.io’s Push Queues with Laravel 4.2, and of course it became obsolete a couple weeks after upgrading to Laravel 5.1. Since Iron.io were the only ones to be using “Push” queues, it added complexity to the... Continue →