0

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.)

2
  • 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, 2013 at 15:33
  • @Hennes: thx! find / -name "php*" -ls was the solution, /bin/php54s was the program to run. Jun 24, 2013 at 16:11

0

You must log in to answer this question.

Browse other questions tagged .