DEV Community

Discussion on: Serving sites with different PHP-version using Laravel-valet

Collapse
 
ihab_abu_afia profile image
πŸ‡΅πŸ‡Έ Ihab Abou Afia πŸ‡ΈπŸ‡¦ πŸ‡ͺπŸ‡¬ πŸ‡¦πŸ‡ͺ

I did ran:
rm -f ~/.config/valet/valet.sock && valet restart

but the 8.1 site worked while the 7.4 give me an error of Gateway.

and I noticed that I have only 1 socket file which is valet84.sock and no valet74.sock create.

Any thoughts?

Collapse
 
istavros profile image
Stavros Ioannidis • Edited

Well you have to start every php you need to run. For example

brew services start php@8.0
brew services start php@7.4 
Enter fullscreen mode Exit fullscreen mode