cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

linux hosting command line php

Hi. 

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?

1 REPLY 1
Helper VI
Helper VI

Re: linux hosting command line php

@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 😄