Laravel valet It works

Jamie picture Jamie · Sep 26, 2016 · Viewed 9.2k times · Source

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?

Answer

mesqueeb picture mesqueeb · Mar 23, 2017

"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