Support the ongoing development of Laravel.io →
Installation Laravel
Last updated by @ayman1970 1 year ago.
0

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.

https://laravel.com/docs/8.x/valet

Last updated by @charlesmun 2 years ago.
0

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)

0
moderator

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 which php?

0

Hello, thank you for your replying.. when I run echo $PATH, it results: /Applications/MAMP/bin/php/php7.4.16/bin:/Applications/MAMP/bin/php/php8.0.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin and for which php, it results: /Applications/MAMP/bin/php/php8.0.8/bin/php

Last updated by @ayman1970 2 years ago.
0
moderator

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: export PATH=/Applications/MAMP/bin/php/php8.0.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

0

I have updated the path in .bash_profile as in your post, but it still produce same result (after running echo $PATH) /Applications/MAMP/bin/php/php7.4.16/bin:/Applications/MAMP/bin/php/php8.0.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

The old PHP ver. is staying as it.

Last updated by @ayman1970 2 years ago.
0
moderator

Did you restart after changing your .bash_profile? I believe it need to be restart / reload to get the changes.

0

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.

Last updated by @ayman1970 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ayman ayman1970 Joined 25 Jan 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.