PHP Home location on Mac OS X

Hi,

I'm a pretty new PHP developer.  I have a Macbook Pro, which comes with PHP pre-installed.  In the PhpStorm editor, I'm being prompted because "PHP Home is not specified" when I'm trying to generate a PHPUnit test.  I've looked all over my file system, but I can't seem to find the location that the PhpStorm UI wants.  I'm sure it's a pretty basic question, but if someone could help, I would greatly appreciate it.

Thank you!

1 comment

I found a php in /usr/bin

However, I've long used the MAMP distribution and really like using it.
MAMP is very simple to setup, and can be upgraded/downgraded separately from OSX.
if you're using MAMP PHP will generally be under /Applications/MAMP/bin/php5.x/bin
note that in the above line, you'd replace php5.x with either php5.2 or php5.3
the MAMP control panel lets you choose which version you want, so pick the location of PHP that corresponds with that.

hope that helps.

- Jack

0

Please sign in to leave a comment.