Trying to find a duplicate version of PHP on my system. Where is it?
- by macek
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?