Skip to content

Instantly share code, notes, and snippets.

@trevorgreenleaf
Created November 29, 2013 20:26
Show Gist options
  • Save trevorgreenleaf/7711464 to your computer and use it in GitHub Desktop.
Save trevorgreenleaf/7711464 to your computer and use it in GitHub Desktop.
Switching PHP from mac to MAMP's PHP
Go to Terminal
Enter " which php "
If it says /usr/bin/php, then proceed to 3.
Enter sudo nano ~/.bash_profile (or sudo vim ~/.bash_profile if you know how to use it)
then paste this export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
ctrl - O then enter to save, then ctrl - X to exit.
restart terminal.
Enter which php
http://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension
@trevorgreenleaf
Copy link
Author

Make sure to look up the path to either your XAMP or your MAMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment