Trying to find a duplicate version of PHP on my system. Where is it?
Posted
by macek
on Super User
See other posts from Super User
or by macek
Published on 2010-05-03T19:03:16Z
Indexed on
2010/05/03
19:08 UTC
Read the original article
Hit count: 295
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?
© Super User or respective owner