Hi. You can consider using Valet.
it is very easy to install and straightforward.
Check the documents here and see if this is feasible for you.
Thank you for your replying, unfortunately I couldn't use brew command, because the OS (macOS High Sierra 10.13.6) on my MacBook is not allowing to run it and incapable to upgrade , further to, my MacBook is old version MacBook Pro (Retina, Mid 2012)
Maybe you have an old value in $PATH that result in a conflict.
What do you get if you run
echo $PATH ?
Or if you run
Hello, thank you for your replying..
when I run
echo $PATH, it results:
which php, it results:
I think you should copy everything you got from
echo $PATH and remove the reference to the old not existing PHP path. And then set the PATH with the new value:
So if you did copy your full path in your message it should be:
I have updated the path in
.bash_profile as in your post, but it still produce same result (after running
The old PHP ver. is staying as it.
Did you restart after changing your
.bash_profile? I believe it need to be restart / reload to get the changes.
If you mean restart terminal ( or using source ~/.bash_profile.), yes I know that and I did, but I don't know why give me old version in path when I run
echo $PATH, while give me the updated one when I run
which php. that mean the change is performed, but when I run composer installing the old version shows in path as mentioned in my original post.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us