Created
September 11, 2013 21:56
-
-
Save scodx/6530312 to your computer and use it in GitHub Desktop.
PATH de php en OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The OSX PHP is located in /usr/bin/php and /usr/bin is in PATH variable by default. | |
| One way to make OSX use MAMP PHP is to add /Applications/MAMP/bin/php/php5.x.x/bin/ to your PATH variable (before /usr/bin): | |
| Simply edit ~/.profile (ie. open Terminal.app, type vim ~/.profile) and add the following line to end of the file: | |
| export PATH=/Applications/MAMP/bin/php/php5.x.x/bin/:$PATH | |
| Note that you should replace xs in php5.x.x with the MAMP Pro PHP version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment