我希望在我的Mac book上进行PHP工作。然而,在安装了Php storm并告诉PHP解释器的位置后,会导致错误:
php-cgi not found
Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified
显然,我应该安装 php-cgi
。
我在 如何在我的 Mavericks 上使用 PHP 5.4.24 启用 fastcgi? 找到了一个答案。它说我应该重新安装带有一些选项的PHP,其中包括fastcgi。
brew install php54 --with-fpm --with-debug --with-cgi --with-libmysql --with-homebrew-curl
brew install fastcgi
我正在考虑这个问题:由于我的Mac默认安装了PHP,我是否需要重新安装一个新的PHP?我是否可以将*cgi
作为默认php的插件进行安装?