My installation method (mainly referred to: www.cnblogs.comxiangminp4279627.html) {code ...} open the browser and enter localhostphpinfo. php, found that still unable to replace yosemite built-in PHP5.5.14 my installation method (mainly refer to: http://www.cnblogs.com/xiangmin/p/4279627.html)
brew options php56 && brew install php56 echo 'export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"' >> ~/.bash_profilesource ~/.bash_profilebrew install php56-xdebug php56-mcrypt php56-imagick sudo apachectl restart
Open your browser and enterhttp://localhost/phpinfo.php
And found that it still cannot replace PHP 5.5.14 that comes with yosemite.
Reply content:
My installation method (mainly referred to: http://www.cnblogs.com/xiangmin/p/4279627.html)
brew options php56 && brew install php56 echo 'export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"' >> ~/.bash_profilesource ~/.bash_profilebrew install php56-xdebug php56-mcrypt php56-imagick sudo apachectl restart
Open your browser and enterhttp://localhost/phpinfo.php
And found that it still cannot replace PHP 5.5.14 that comes with yosemite.
Modify httpd for apache configuration. conf: Modify LoadModule php5_module libexec/apache2/libphp5.so to the new so, for example, LoadModule php5_module/usr/local/opt/php56/libexec/apache2/libphp5.so. Restart apache