0
I have having a helluva time trying to track down which php binary my apache is using.
locate bin/php
returns this list
/usr/bin/php
/usr/bin/php-cgi
/usr/bin/php-config
/usr/bin/phpize
/usr/local/bin/php
/usr/local/bin/php-cgi
/usr/local/bin/php-config
/usr/local/bin/php-shell.sh
/usr/local/bin/phpize
Let's see the versions:
/usr/bin/php -v shows 5.3.2
/usr/bin/local/php -v shows 5.3.2
What about which
?
[macek ~]$ which php
/usr/bin/php
The problem
phpinfo();
when executed by apache shows 5.2.11
Where is this phantom 5.2.11 on my system?
Did you solve this issue? – Daniel Beck – 2011-06-03T18:06:48.477
@Daniel Beck, yes, see the solution below. Apache is loading php as a module. Replace this module with an updated one and you should be all set :) – macek – 2011-06-04T14:45:38.343