title: How to install php-cgi as a plugin in Mac OS ( OS X 10.10)?
body: <p>I want to do PHP works on My <strong>Mac book</strong>. However, after I installed <strong>Php storm</strong>, and tell the <strong>PHP Interpreter</strong>'s location, it causes error:</p>
  
  <pre><code>php-cgi not found
  Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified
  </code></pre>
  
  <p>Obviously, I should install <code>php-cgi</code>.</p>
  
  <p>I found an answer on <a href="https://stackoverflow.com/questions/23667178/how-do-i-enable-fastcgi-on-my-mavericks-using-php-5-4-24">How do I enable fastcgi on my Mavericks using PHP 5.4.24?</a>. It says I should re-install <strong>PHP</strong> with some options, both <strong>fastcgi</strong>.</p>
  
  <pre><code>brew install php54 --with-fpm --with-debug --with-cgi --with-libmysql --with-homebrew-curl
  brew install fastcgi
  </code></pre>
  
  <p>I am considering that: Since I have the default <strong>PHP</strong> on my Mac, must I re-install a new <strong>PHP</strong> ? Can I install <code>*cgi</code> as a plugin of the default <strong>php</strong> ?</p>