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

bashy's avatar

Yeah, most of that you don't have to redo. Just adding the site to the Homestead.yaml and editing your /etc/hosts file is all you have to do :) then of course just provision the Vagrant VM.

I would also suggest using this to help you visually (and make it easier) to see all the VMs: http://vagrantmanager.com

I use it myself at work and personally.

1 like
mehany's avatar
you can add a new Laravel site in about 2 minutes

30 seconds over here! Why 2 minutes?

serve homestead.app /home/vagrant/homestead.app/html/public 80

// bam

nano /etc/hosts // bam bam

Fenwick17's avatar

@bashy The issue that is occurring for me now (got to the splash screen) however upon closing my terminal now that I open it again I get "zsh: command not found: homestead". Add "export PATH = ~/.composer/vendor/bin:$PATH" to the bottom of my .bash_profile, but that didnt do anything.

bashy's avatar

Haha, I never use the serve command. Is it still in the latest version? It's not in the docs.

I don't use homestead command. What's it for? I'm sure that's been removed in the latest one.

Fenwick17's avatar

It appears to be so you can ssh via terminal into your homestead box. Allowing you to see your files and stuff

Fenwick17's avatar

Managed to get it to work by typing "PATH=~/.composer/vendor/bin:$PATH" into my Terminal. However when I close term and open it again the not found error occurs. So I would have to do it each time

bashy's avatar

I very rarely have to SSH into the VM. I always use the manager if so. If you can't get it working, I'd use that.

mehany's avatar

@bashy no, it stopped in 5.0 which I actually didnt notice. I have been using vagrant commands recently but now I feel like "You seem to have upset the delicate internal balance of my housekeeper." that Taylor displays in the docs :)

@Fenwick17 in ~/.bash_profile add

composer='~/.composer'
export PATH=$PATH:$composer/vendor/bin

then save and exit then do

source ~/.bash_profile

Then you shouold not need to do it manually every time!

bashy's avatar

Ah right. I always edit the Homestead.yaml and do vagrant provision. I did used to use the serve command in Vaprobash (which is similar).

Fenwick17's avatar

@mehany After doing that I get WARNING: this script is deprecated, please see git-completion.zsh \u@\h \W[\033[32m][\033[00m] $

Could this be linked to zsh? I am using oh-my-zsh I thinl

Fenwick17's avatar

@bashy Got Vagrant Manager installed now, as well as Sequel pro. Now just need to figure out how to set them all up correctly.
Tried keeping it the same way as Jeffrey, just for ease of learning

mehany's avatar

@Fenwick17 I don't use oh-my-zsh but i see that you just migrated from windows, try to just use the basic OSX console or ITerm

bashy's avatar

Depends how you installed ohmyzsh I think.

Fenwick17's avatar

@bashy @mehany Reverted my shell back to bash, and now I can ssh into the VM so I can follow Jeffreys steps till I get into the swing of things. Thanks for some awesome help guys! Will be cracking on with this a bit more tomorrow. I do see the benefits of it massively.

jekinney's avatar

@bashy For my statement that phpmyadmin is being depreciated... Yeah, sorry I usually check on my phone and no notifications of being tagged... :(

bashy's avatar

@jekinney Oh right. Not sure how that's related to PMA being depreciated :P looks basic that Adminzor

1 like
Previous

Please or to participate in this conversation.