Make sure you run all your commands in SUDO mode. ex: sudo chgrp -R www-data
As a test, I set my chgrp -R www-data and chown -R www-data and chmod 755 -R and everything worked fine. NOTE: /vagrant/projects/demo is the directory mounted on my Windows machine so I can use phpStorm and Vagrant at the same time. Here is what my Linux files look like: drwxr-xr-x 3 www-data www-data 4096 May 9 16:46 www lrwxrwxrwx 1 www-data www-data 52 May 12 18:59 demo.com -> /vagrant/projects/demo NOTE: My symbolic link demo.com remains 777 and the files under /var/www/demo.com remained 'vagrant' after running the above commands Example: drwxrwxrwx 1 vagrant vagrant index.html On Friday, May 15, 2015 at 4:25:36 AM UTC-4, Armen Babakanian wrote: > > > > <http://stackoverflow.com/questions/30252268/using-host-tools-to-develop-on-a-vagrant-machine#> > > > I am using vagrant for developing my website and I would like to use local > machine(host) tools such as sublime, VS Code, etc.. to build the website. > > This is how I setup the virtual machine. All the website related folder > are in the home directory, with group permission set to www-data ex: > > ~/_blog > ~/_main > ~/_django_app > > and in the /var/www/ folder, a symbolic link of those folder are places: > > /var/www/blog -> ~/_blog > /var/www/index -> ~/_main > /var/www/app -> ~/_django_app > > I cannot use the /vagrant/ folder because it doesn't have permissions so > If I share it and make changes there I would have to manually go and copy > stuff over to home directory. I placed a copy of all the folders in the > /vagrant/ folder and configured a 3rd party tool like incron which > listens for file changes and runs a command, which I setup to run rsync > to copy over from /vagrant/ to home directory. But when I make the > changes in the host, it doens't work. > > Is there an alternative way of doing this that works? > > Thanks, > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
