Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.