Where on my server is the PHP version that serves web pages?
问题 I'm on a shared server. When I save a script with phpinfo() and open it in the browser, the script tells me "PHP Version 5.6.18": When I visit my server through SSH and look in /usr/local/bin , ls shows me PHP versions from 4 to 5.5, but no version 5.6: When I search for PHP with which php , I get the following (with results from ... -v in parentheses): /usr/bin/php (4.4.9) /usr/bin/php4.4 /usr/bin/php5.2 /usr/bin/php5.4 /usr/bin/php5.5 /usr/bin/php5.4-cli /usr/bin/php5.5-cli /usr/bin/php4.4