phpinfo and php -v show different version on mountain lion -


I am trying to upgrade my PHP from 5.4.1 to 5.3.15 on Mac OSX 10.8.2. I have downloaded and executed the source code of php 5.4.8 manually:

  ./configure --prefix = / usr / local sudo to install  

Code> php -v shows 5.4.8 while still shows 5.3.15.

& lt; Any thoughts about getting php phpinfo (); ? & Gt; to indicate the newly installed php version?

This is happening with you because you have two versions of php installed in your Mac, a web As an extension with the server and the other one (one from CLI) is installed by default in your OS.

I installed PHP and Apache via Mac ports would solve this problem for you. Try it!

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -