我通过在Apache上运行brew,在yosemite上有php5.6但是我的phpinfo文件显示了php5.5
我已将/private/etc/apache2/httpd.conf
文件加载模块更新为:
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
我重启了apache。我添加了两个后重新启动了终端:
export PATH="/usr/local/opt/php56/bin/:/usr/local/sbin:/usr/local/bin:$PATH"
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
哪个php返回
/usr/local/opt/php56/bin/php
我已重新启动整台计算机,并在运行phpinfo文件时返回
PHP Version 5.5.20