I'm using laravel valet for years and I had several times problems with 502 Bad Gateway
now I have it after I removed PHP 7.4 and installed PHP 8.1. Usualy this problem can be solved by doing valet install
but now it doesn't work.
My valet version is 3.0x
, at the moment on the latest version, I installed PHP 8.1 and linked it with brew link [email protected] --force
and valet use [email protected] --force
.
One of the possible solutions was uninstall valet and nginx completely with his configuration and install it again but it still doesn't work, I also tried multiple times restarting valet and running valet install
again but none of these ways works, read multiple times ideas on stackoverflow solutions but none of them works.
Does anybody has any idea what still could be wrong with setup after uninstalling/installing PHP?