Laravel Valet not working. 127.0.0.1 Connection Refused

风格不统一 提交于 2019-12-06 13:27:02

Fixed this. I followed a guide a while back to get a local dev setup and the issue was I had a .plist xml file within /Library/LaunchDaemons that forwarded port 80 to 8080 for 127.0.0.1.

The Run with Port 80 on this guide has caused me hours time trying to solve this one haha:

https://echo.co/blog/os-x-109-local-development-environment-apache-php-and-mysql-homebrew

I had a similar connection issue between Valet and Nginx and fixed it by manually uninstalling and reinstalling Valet, found in this Stack Overflow answer:

$ rm -rf ~/.valet
$ brew unlink nginx && brew remove nginx
$ brew unlink php56 && brew remove php56 && brew uninstall --ignore-dependencies php56
$ brew unlink php72 && brew remove php72
$ brew unlink dnsmasq && brew remove dnsmasq

With a clean slate, I was able to successfully install a working Valet environment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!