Common Vagrant/Build Process Issues

Andrew Heins
cannot access '/home/vagrant/.composer/' No such file or directory

Generally caused when the locally installed version of Homestead is newer than an old version of Homestead that was used in the repo

The best bet is actually to update your composer.json on the project to use a more recent version of Homestead.

Watch commands not actually noticing file changes on windows

Generally caused by single quotes (') in the package.json commands. Resolve by replacing all single quotes (') with escaped double quotes (\")

There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
  • Open up Settings > Accessibility and Privacy > General
  • Look at the bottom for “a program from Oracle was blocked”
  • Allow it.
  • Try again.
502 Bad Gateway when trying to access site

vagrant ssh

sudo systemctl enable php7.4-fpm sudo service php7.4-fpm restart