Skip to content
Advertisement

change the PHP path to MAMPs PHP

I’m running PHP with MAMP on OSX 10.5.8

So if I want to run a script from console I always need to write

JavaScript

which is annoying. Is there a way to change the default path to php so that I can write

JavaScript

and still uses MAMPs PHP version?

Advertisement

Answer

Create a file called .bash_profile on your home directory (if you don’t have this file already), and add this to the file:

JavaScript

Then quit and relaunch Terminal.app

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement