Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a webserver (on bluehost) that says to run php 5.4 but when I try to run

php --version

then I get 5.2.17 printed. Is there some special parameter or different command to get version 5.4? OR can you please offer some workaround?

(I mean with C++11 you have to type g++ -std=c++11.)

share|improve this question
There could be multiple installed PHP versions. E.g /usr/local/bin/php52 and /usr/local/bin/php5.4 (Possibly with /usr/local/bin/php being a softlink to the 5.2 version). What does locate php, or find / -iname "php*" -ls show you ? – Hennes Jun 24 '13 at 15:33
@Hennes: thx! find / -name "php*" -ls was the solution, /bin/php54s was the program to run. – Barnabas Szabolcs Jun 24 '13 at 16:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.