How to install php-cgi as a plugin in Mac OS ( OS X 10.10)?

后端 未结 3 1819
闹比i
闹比i 2021-01-13 20:24

I want to do PHP works on My Mac book. However, after I installed Php storm, and tell the PHP Interpreter\'s location, it

3条回答
  •  青春惊慌失措
    2021-01-13 20:39

    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.

提交回复
热议问题