If everything was successful, It should output the new path to MAMP PHP install. In Terminal, type in which php again and look for the updated string. ![]() Type i and then paste the following at the top of the file: export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH Within the Terminal, run vim ~/.bash_profile bash_profile and add the MAMP version of PHP to the PATH variable. Now, We just need to swap this over to the PHP that is installed with MAMP, which is located at /Applications/MAMP/bin/php/php5.4.10/bin (MAMP 2.1.3) This should output the path to the default PHP install which comes preinstalled by Mac OS X, by default it has to be (Assuming you've not changed it before): /usr/bin/php To do that, Within the terminal, Fire this command: which php Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Managementįirst, Lets find out what version of PHP we're running (To find out if it's the default version).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |