Vagrant miscellaneous

to sync the /var/www folder with the host computer
1. edit Vagrantfile and add this line config.vm.synced_folder “www/”, “/var/www/”
2. create a folder called www where the Vagrantfile is located
3. read up on some resources if need be

enable symlink on a shared/sync folder
1. follow these instructions
2. ran these command in windows cmd
– cd C:\Program Files\Oracle\VirtualBox
– VBoxManage.exe setextradata local.puphpet17 VBoxInternal2/SharedFoldersEnableSymlinksCreate/node 1
– VBoxManage getextradata local.puphpet17 enumerate
should see ‘Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/node, Value: 1’
3. Run vagrant as windows administrator

One thought on “Vagrant miscellaneous”

Comments are closed.