Skip to content

Instantly share code, notes, and snippets.

@locnguyen
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save locnguyen/c2910e51f2d5ae0ba430 to your computer and use it in GitHub Desktop.
Save locnguyen/c2910e51f2d5ae0ba430 to your computer and use it in GitHub Desktop.
Laravel Vagrant notes

Write permissions to app/storage need to be granted to the Vagrant VM. The gotcha is you have to do this from the host machine:

chmod -R 777 app/storage

For some reason ~/.composer (or COMPOSER_HOME) will change ownership to root:root. This needs to be owned by the vagrant user:

chown vagrant:vagrant ~/.composer

If you're still getting an exception when running composer install like this

file_put_contents(/home/vagrant/.composer/cache/repo/https---packagist.org/provider-laravel$laravel.json): failed to open stream: Permissisioni denied

Then completely delete the vendor/ directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment