Preview in Web Browser

I'm currently testing out PHPStorm for possible purchase. However, I'm running into what I would consider a simple issue. I simply cannot preview a php file in a web browser. I'm running MAMP with my directories located in htdocs.

Here is an example of what I'm experiencing.
I have a test project with one file, index.php
Inside test.php is an echo statement, 'This is a test'.

When I click run I get the following,
The Edit Configuration menu pops up and at the bottom it states,
'PHP executable not found at /Applications/MAMP/bin/php/php5.3.6/conf'

I've tried for hours getting this to work to know avail. Can some help me understand what I'm doing wrong?

I'll include a screenshot in case it may help.


Screen shot 2011-08-02 at 9.12.13 AM.png

See that "Fix" button? Click it and tell PHPStorm where the PHP executable is located. On Mac (UNIX) it's at /usr/bin. But you are using MAMP, and I can't remember where it's located. But you can look at the phpinfo() file.


Thank you Stephen. I was confused with the PHP Home and PHP Exectuable. With your answer I was able to figure out that for my install of MAMP the PHP Exectuable was located in /Applications/MAMP/bin/php/php5.3.6/bin. Once that was set everything fell into place and worked correctly. Thank you for your response.


Please sign in to leave a comment.