I want to do PHP works on My Mac book. However, after I installed Php storm, and tell the PHP Interpreter\'s location, it
I was searching for the answer to this, but I'm not using Storm, and I want the latest version of PHP 5. I was able to get it working using the following:
First, make sure you don't have an old version of gcc laying around from before you upgraded OS X. In my case, I needed to:
brew uninstall apple-gcc42
Then get the PHP source and install it with CGI enabled:
brew tap josegonzalez/homebrew-php
brew tap homebrew/dupes
brew install --enable-cgi php56
I used this to set up a Rack-based project that runs PHP in CGI mode.