Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to change PHP $PATH setting?

I am using MAMP 2.x, my terminal for PHP command is already set to the MAMP PHP 5.3.x, but now I want to change to PHP 5.2.x

I have done this before, but i forget the location of the file.

share|improve this question
up vote 1 down vote accepted

I found it, it located at /etc/paths we can edit it from terminal with this code

sudo nano /etc/paths
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.