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

ohffs's avatar
Level 50
0 likes
56 replies
christopher's avatar

Already installed it and its awesome.

Super fast installation, and no full virtual machine. Saves some battery and no hassle with all these vagrant up / halt / edit hosts file stuff. Great.

The only thing i have:

I cant connect to the MariaDB with SequalPro. Anyone else having this issue?

EDIT Solved it, had to start mariadb

brew services start mariadb
Harish's avatar

Why not windows? New into learning, can someone explain?

ohffs's avatar
Level 50

@Harish I imagine it's do-able, but things like DNSmasq might be tricky to replicate 'out of the box' on Windows. There's no Linux support at the moment either, I might have a dig at that...

jimmck's avatar

You gotta love this fast food mentality to development! It just happens... It just works... 2 of the greatest interview answers I have ever heard.

Harish's avatar

@ohffs oh okay , thank you for the input :) helped me!

@christopher my recipe includes WAMP & GIT extensions on windows. I find it smooth and neat :)

noeldiaz's avatar

I've used this setup for quite a while now, just with a manual setup of php, dnsmaq, and database. This seems like a nice wrapper around everything. Now, I have tried to replicate the environment on windows, since setting up homestead there is always a pain compared to osx/linux. I had it working a while back using AcrylicDNS (http://mayakron.altervista.org/wikibase/show.php?id=AcrylicHome) but I don't have that windows machine anymore.

Now sure, this is not a reproduction of the "real" environment when the app going into production. I'll still keep Homestead around for that final check. But during the heavy development part of my apps this is good enough to get going fast and be able to switch projects easily. Can't complain about the fact that the app renders in a fraction of the time on each load too.

Plus inserting/updating many thousands of records on the database is way faster when it is running natively on the host! Had some problems since some of my databases are huge.

noeldiaz's avatar

@christopher If you don't want maria running all the time, instead of the brew services you can do:

mysql.server start
and 
mysql.server stop

You can see all the options with:

brew info mariadb

Same commands if you install Mysql instead of MariaDB too.

1 like
lindstrom's avatar

Very cool. Does using Windows make me a nonda? I use per project Homestead and setup of a new project isn't that bad. Based on these forums, however, ymmv.

mryanmccarthy's avatar

I'm getting this:

Warning: fileowner(): stat failed for /Users/root/.valet/config.json in /Users/mmccarthy/.composer/vendor/laravel/valet/server.php on line 11

Warning: file_get_contents(/Users/root/.valet/config.json): failed to open stream: No such file or directory in /Users/mmccarthy/.composer/vendor/laravel/valet/server.php on line 27

Warning: Invalid argument supplied for foreach() in /Users/mmccarthy/.composer/vendor/laravel/valet/server.php on line 47
404 - Not Found

Tried installing Valet twice now... :/

noeldiaz's avatar

@adeptinkandpixel the config file should not be under root. Did you run it with sudo? The composer part or the "install" part? Everything should end up under your user directory "mmccarthy".

1 like
simondavies's avatar

my issue is running valet install, get the zsh: command not found: valet added my APTh to the .zshrc file and running echo $PATH i get

  ~/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

But still get nothing, ideas, appreciated ta!

UPDATE: for now i have to add the following to my aliases file:

     alias valet="~/.composer/vendor/bin/valet"
theUnforgiven's avatar

Shame it doesn't work when Homestead is running or am I missing something?

christopher's avatar

@simondavies The path for composer should be

/Users/YOURUSERNAME/.composer/vendor/bin:

At least its like so on my mac.

1 like
noeldiaz's avatar

@lstables I just had it running with Homestead at the same time to transfer my DB contents from Homestead to a locally installed MariaDB. So you can run them both. But maybe entries on your hosts file are conflicting? Especially if you named them the same?

1 like
theUnforgiven's avatar

Yeah having asked Taylor, I found you can do this, but I'm getting a 404 error when trying to navigate to any registered sites.

simondavies's avatar

one thing i have noticed is that it hangs if trying some already built sites, and that is with Homestead Off, hosts file details removed.

But simply renaming the folder so myOldSiteName.devto renamedOldSite.devthen running in the browser worked. Appart from the lack of MySQL DB etc so that next but just thought i would mention this? Could these homestead sites be cached anywhere etc?

Demers94's avatar

I just finished installing/setting it up (took me a good two minutes), Valet is awesome! Yet another amazing addition to the Laravel family/ecosystem, I especially love the "valet share" feature.

I never used Homestead in the past so it's an even bigger change from just using MAMP.

theUnforgiven's avatar

I tried with a directory not even had on Homestead at all, or within my hosts file and is just a basic html page, but still 404 appears.

simondavies's avatar

@Istables could it be a path issue, do you have that html file in the root of your named site, if so, its set up to look within a public folder within the domain folder. I had a similar issue regarding a different name to the public folder and fixed it by writing a driver, see this thread for what i did.

perhaps you might need to remove the public/html folder overall to then access the root of the domain folder??

https://laracasts.com/discuss/channels/laravel/valet-alternative-settings

olimorris's avatar

Is anyone else getting SQLSTATE[HY000] [2002] Connection refused? Mariadb is up and running.

simondavies's avatar

@olimorris did you log into the DB and set up the DB details , add the username etc. This was my issue before, so logging to sequel pro via the user root and no PW, then set up a DB and a username etc, then all connected fine

snetty's avatar

Came across a couple of issues setting this up, but they were p.much all covered by Taylor's documentation. Only comment I would make is that he's assuming people are familiar with brew, and just a little more hand holding would go a long way to getting set up.

So fast, and https via valet share is a great feature.

1 gotcha is that because ngrok handles the ssl and then proxies the request to your non-ssl, the url() helper function will return an absolute non-ssl path, so you need to be aware of that.

alenn's avatar

Until Valet is ported to Linux I'm sticking with Docker, Vagrant takes time to boot up and that annoys me.

Next

Please or to participate in this conversation.