Command not found after installing php

446 views Asked by At

I have php5 installed on my macbook then I tried to update it, to php7 after I successfully installed the php7, I tried to check the installed version using php -v. But to my surprise it shows I still have php5 running on my system.
After that I tried to move my php7 to my php5 directory /bin/usr/ but failed. Then I tried to run php-v but the response I got was -bash: command not found.
Please how can I solve this both on my terminal and VSCode?

0

There are 0 answers