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
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
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.
2 things you can check
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community