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

vnc00's avatar
Level 3

Laravel Valet broken after upgrading to PHP 7.4

Hey,

I just wanted to upgrade Laravel Valet since a new version for PHP 7.4 was released yesterday.

After I followed the steps of https://stitcher.io/blog/php-74-upgrade-mac I can't access any page anymore (ERR_CONNECTION_REFUSED in Google Chrome) and I don't really know how to start troubleshooting.

Any ideas, where Valet write logs or sth?

0 likes
14 replies
Tray2's avatar
Tray2
Best Answer
Level 73

Did exactly that this weekend and took me about two hours to get it back up again.

Not sure what made it run again but I ran the following

brew uninstall [email protected]

brew uninstall nginx

brew uninstall dnsmasq

brew install php

brew install nginx

brew install dnsmasq

sudo valet install

Good luck.

9 likes
Roni's avatar

Thanks @tray2

note if you run into permission errors uninstalling via homebrew, you can add force to remove all versions of something, for example brew uninstall --force php will override permissions and uninstall all php versions. This can help if you have some old ugly ini's or rules hanging around.

1 like
laravelMan's avatar

This 4 lines solved my problem after upgrading to php 8. thanks:)

Please or to participate in this conversation.