INfo Php Version

Hi, we need to give some PHP via SSH terminal commands However, the PHP version that is usable by the terminal is old (5.4.16). In the server is also installed version 5.5.21 I use the various domains without any problem. But if I connect via SSH and I type " Php -v " as the 5.4.16 version comes out.

Is Possible set as default the 5.5.16 version?

Many Thanks

Status: 
Active

Comments

Howdy -- it sounds like you have other PHP versions installed from a repository such as the SCL repository.

It installs those along side your current PHP version.

They are separate binaries though -- the standard CentOS-provided PHP version remains in /usr/bin, the others are located within /opt.

If you'd like to see the full path to the PHP binaries, you can go into System Settings -> Re-Check Config, and when it detects the PHP versions, it will show their paths.

If you'd like to call them from the command line, a cron job, or from within a script, you can use the full paths that you see in the Re-Check Config output above.

Would that do what you're after?