用PHPStorm運行PHP腳本的時候瀏覽器提示"502 Bad Gateway",PHPStorm提示"php-cgi not found"。php
系統爲:MacOS X EI Captian瀏覽器
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
/usr/local/php5/bin
"雖然這個方案會讓系統中存在兩套PHP,更好的辦法固然是下載個跟系統同樣的PHP源代碼,而後從新編譯,可是考慮到時間因素,就先不折騰了。bash