On Sun, Dec 27, 2015 at 11:50 PM, Edgar Oliveira <[email protected]
> wrote:

>    config.vm.synced_folder "data", "/var/www/foo"
>
>
Hello,

You need to replace this:

   config.vm.synced_folder "data", "/var/www/foo"


With

The line you pasted in the previous email.

config.vm.synced_folder "foo", "/var/www/foo",
   id: "foo", :mount_options => ["uid=510,gid=510"]



Run first:
id www-data

and use those numbers for uid (user id) gid (group id)

That will mount the shared folder so the www-data user will be able to read
them.

be sure that you need to have the structure that your web server require.

in some cases you want to mount as /var/www and inside that create html


Alvaro.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezdnAdeYjhmzh%3DuKuWQOUcc4NitpWkg5Yj_44%2B8Jw%2BOMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to