Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

So I did this:

alias php='/usr/bin/php'

Now php seems to work, but when I try doing "which php", it's outputting: -bash: which: command not found

0

alias is not the same thing as path. I'm guessing your path got screwed up somehow. Here is how you can fix it. Add these 2 lines to your ~/.bash_profile

export MAMP_PHP=/Applications/MAMP/bin/php/php5.5.10/bin
export PATH="$MAMP_PHP:$PATH"

assuming /Applications/MAMP/bin/php/php5.5.10/bin is the location of you MAMP php exit the terminal then open it again

0

Thank you! My php is working now! ^_^ <3

But I'm still having the mcrypt issue. :'(

/Applications/MAMP/htdocs/asl/laravel
Lindsays-MacBook-Pro-2:laravel TheFishbowl$ php artisan serve
Mcrypt PHP extension required.
Last updated 9 years ago.
0

2 things you can check

  1. Do you have the correct php version when you type php -v you should see something like php5.5.10
  2. Check if mcrypt is actually enabled by doing php -i | grep mcrypt you should see something like this mcrypt support => enabled

If it's not there go into /Applications/MAMP/bin/php/php5.5.10/conf/php.ini

and add

extension=mcrypt.so (search for all the other extensions being loaded)

restart mamp

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.