Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

egarcia's avatar
Level 12

Valet and Symfony 4: 502 Bad Gateway error

I recently upgraded my Valet and php7.4 installation using Homebrew, restarted Laravel Valet manually and only my projects with Symfony 4 stop working.

Note: Normally, when this happends I was able to resolve it by reinstalling Laravel Valet.

I can't see any error on logs, how can I debug this problem?

0 likes
1 reply
egarcia's avatar
egarcia
OP
Best Answer
Level 12

If you having problems serving Symfony projects after an brew upgrade or composer global update you must reset Laravel Valet with valet uninstall --force and make sure the Hombrew dependencies were removed and re installed correctly.

That solves my problem.

Please or to participate in this conversation.