Skip to main content
Showing results for 
Show  only  | Search instead for 
Did you mean: 

linux hosting command line php


I updated my server PHP version to 7.0 and I connected to the server via ssh credentials. when I type php -v in the command line interface it is showing me the PHP version is 5.4.5. i want my command line  to use php 7.0.  Is there any way?

Helper VI

@ymssrikanth sure, you just have to remove the older version, or you can create a symlink to the PHP7 exec with a different name, for example php7 -v


What OS does your server have?


Hope it helps!

If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄