I want to do PHP works on My Mac book. However, after I installed Php storm, and tell the PHP Interpreter's location, it causes error:
php-cgi not found
Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified
Obviously, I should install php-cgi
.
I found an answer on How do I enable fastcgi on my Mavericks using PHP 5.4.24?. It says I should re-install PHP with some options, both fastcgi.
brew install php54 --with-fpm --with-debug --with-cgi --with-libmysql --with-homebrew-curl
brew install fastcgi
I am considering that: Since I have the default PHP on my Mac, must I re-install a new PHP ? Can I install *cgi
as a plugin of the default php ?