Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aryowirastomo's avatar

Laravel Valet not working properly

Hi all,

i have done install as per the documentation and follow the https://laracasts.com/series/laravel-from-scratch-2017/episodes/3 video

  1. PHP 7.1 - Installed
  2. composer global require laravel/valet - executed
  3. valet install - executed
  4. valet park (at root directory) - executed
  5. ping something.dev - executed and work properly

but while i go to browser and try to open my vlog.dev (laravel fresh install app) it's not working properly. The browser only show the (It's Works) which is the default index file of the apache.

Do you have any experience and how to solve this problem?

0 likes
9 replies
ejdelmonico's avatar

Well, that is a problem because Valet uses nginx to serve your sites and dnsmasq to direct all *.dev requests to valet. You have probably apache using port 80 so that maybe your issue.

aryowirastomo's avatar

It's still cannot solve my problem. I have got connection refused error while i stop my apache server.

ejdelmonico's avatar

Do a composer uninstall of valet. Update to the latest composer. run composer global update to make sure you have the latest valet installer. Run brew update && brew upgrade. Then, install valet again with apache not running.

ejdelmonico's avatar

https://cl.ly/iwRt

to see that files and permissions in .valet. Most perms are 755 except for the socket which 777. You must be the owner and behind the scenes Valet will access what it needs.

Check the niginx-error.log in .valet/Log/

aryowirastomo's avatar
aryowirastomo
OP
Best Answer
Level 5

Thanks you for your help,

I did solve my problem with:

  1. Check Nginx running status --> brew services list,
  2. Start Nginx --> brew services start nginx

Restart valet --> valet restart

Everything works now.

2 likes
rverrips's avatar

I had this issue come up after upgrading to macOS 10.13.1 - Seems that apache crept back into my installation. (The "It works!" page is apache, not nginx)

To unload apache, do the following:

sudo apachectl -k stop

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Then restart valet with

valet restart

1 like
johnsci's avatar

On my case running linux (Manjaro) with valet, when I am starting NordVPN, I run valet install and my problem is solved

Please or to participate in this conversation.