phpinfo reads php5.5 instead of php5.6

799 views Asked by At

I have php5.6 on yosemite via brew running on Apache, but yet my phpinfo file shows php5.5

I have updated the /private/etc/apache2/httpd.conf file load module to:

LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

I have restarted apache. I have restarted the terminal after adding both:

export PATH="/usr/local/opt/php56/bin/:/usr/local/sbin:/usr/local/bin:$PATH"
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"

which php returns

/usr/local/opt/php56/bin/php

I have restarted the entire computer and when running a phpinfo file returns

PHP Version 5.5.20
0

There are 0 answers