Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel valet It works

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?

like image 400
Jamie Avatar asked Sep 26 '16 16:09

Jamie


People also ask

What does laravel valet do?

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.

Does laravel valet work on Linux?

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.

Can I use laravel valet in Windows?

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.

What is valet Linux?

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.


1 Answers

"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
like image 101
mesqueeb Avatar answered Sep 25 '22 01:09

mesqueeb