简体   繁体   English

Laravel Valet没有报告错误,但我看不到我的Laravel应用

[英]Laravel Valet doesn't report errors but I can't see my Laravel app

First, I'm running macOS High Sierra, with Homebrew's PHP 7.1 首先,我使用Homebrew的PHP 7.1运行macOS High Sierra

I've also followed the Valet documentation to the letter, as well as trying what was on these asks: Valet (Laravel): DNS address can not be found and Laravel valet It works aaaaaand, despite all of that, when I navigate to project.dev, I just get "It works!" 我也遵循了Valet文档的内容,并尝试了这些询问中的内容: Valet(Laravel):找不到DNS地址Laravel valet尽管所有这些,当我导航到项目时, 仍然有效.dev,我刚得到“有效!” I was having issues pinging, but that turned out to be Stealth Mode in the macOS Firewall. 我在ping时遇到问题,但事实证明是macOS防火墙中的“隐形模式”。

I have Laravel set up in this directory, so I SHOULD be getting the default splash page, right? 我在此目录中设置了Laravel,所以我应该获得默认的启动页面,对吗?

Also, in case it matters, here's the line I used to install PHP 7.1 itself: brew install php71 --with-httpd --with-pear --with-postgresql --with-thread-safety --with-homebrew-curl 另外,万一有问题,这是我用来安装PHP 7.1的那一行: brew install php71 --with-httpd --with-pear --with-postgresql --with-thread-safety --with-homebrew-curl

You should check your settings related to firewall. 您应该检查与防火墙相关的设置。 Make sure you are allowing pings and ICMP. 确保您允许ping和ICMP。

To check it on a Mac : 要在Mac上进行检查:

System Preference > Security & Privacy > Firewall > Firewall Options 系统偏好设置>安全性和隐私>防火墙>防火墙选项

This sounds like the Apache that comes pre-installed with macos is running in the port 80. Before starting valet, make sure that Apache is stopped. 这听起来像预装macOS的Apache在端口80中运行。在启动代客服务之前,请确保已停止Apache。

You can these commands: sudo apachectl stop or sudo apachectl -k stop to stop Apache, and after that, then you can proceed with your valet process. 您可以执行以下命令: sudo apachectl stopsudo apachectl -k stop以停止Apache,然后,您可以继续进行代客处理。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM