PATH=/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.1.12/bin:$PATH Now write in the file the new “$path” variable that terminal has to use ( if you don’t know MAMP’s php version, open MAMP navigate to “Preferences -> PHP” and see the selected versions ). If you cannot edit the file, enter the Edit mode simply typing a. Since you call vi in sudo mode you’ll have to type your system password. Now we have to modify the “$path” variable by modifying the file ” ~/.bash_profile ” located in root user folder. You can see, the MAMP’s folders don’t are showed. With this commands you verify which PHP is your Terminal using.Īs you can see ( if you are use default Mac OSX apache + php server ) you see as terminal response Here 3 steps for let’s say to terminal the existence of the MAMP’s PHP binaries and use them instead of the ones shipped with MacOSX.ġ° step : Verify which PHP is used by your Terminal In MacOSX there is a default Apache + PHP server, but if you develop using MAMP, you need to use MAMP version’s of php instead the OSX one.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |