Problem: When I ssh to my web server and run anything with "php", it runs an old php 5.2 for some reason. The link /usr/bin/php
points to the wrong version. I cannot change this symlink.
What I tried: From folder ~/test
I'd like to install something, but it requires php 5.6. So I created a symlink in folder ~/tes
which points to php5.6:
ln -s /usr/bin/php56 php
To make sure the system checks the current directory for php, I've changed PATH
variable and added current directory first:
PATH=/home/test:$PATH
No luck though.
php