I'm trying to install Laravel valet
but I keep getting (when I visit domain.dev):
It works!
I already tried a lot. For example:
remove valet
stop apache (apachectl stop)
composer global require laravel/valet
valet install
valet restart
But that does not work for me. I've also installed Laravel Homestead
in a vagrant box. Perhaps that has something to do with it? I can visit my Homestead sites.
How can I fix this problem?
Laravel Valet is a development environment for macOS minimalists. Laravel Valet configures your Mac to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.
The official Laravel Valet development environment is great if you are an Apple user. But there is no official Valet for Linux or Window system.
Laravel Valet configures your Windows to always run Nginx in the background when your machine starts. Then, using Acrylic DNS, Valet proxies all requests on the *. test domain to point to sites installed on your local machine.
Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too. Valet Linux configures your system to always run Nginx in the background when your machine starts.
"It works!" will always be a message from Apache. Apache has to be turned off for Laravel Valet to work.
I see you have tried these before:
$ stop apache (apachectl stop)
$ sudo apachectl -k stop
I had the same problem. Try with the command below and then after be sure to restart valet again! This fixed it for me:
$ sudo apachectl stop
$ valet restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With