I am trying to set up a Yii project in a Vagrant driven VM, but I'm having problems with file permissions. The project has an app/runtime folder, that requires write access, but the site complains, that the folder is not writable.
I used PuPHPet to create the configs, here is a chunk of the config.yaml:
synced_folder:
source:
source: ./
target: /var/www
nfs: 'false'
owner: 'www-data'
group: 'www-data'
mount_options:
- "dmode=775"
- "fmode=775"
yiicore:
source: ../yii/framework
target: /yii
nfs: 'false'
So I try to attach the project folder as /var/www, and that part works, but the web application does not have write permission. (and the owner and group is still vagrant: [ls -la] "drwxr-xr-x 1 vagrant vagrant 272 Apr 10 14:14 runtime/" )
I tried different "tutorials" and possible solutions, but without any success:
- http://jeremykendall.net/2013/08/09/vagrant-synced-folders-permissions/
- https://stackoverflow.com/a/19024922/2205458
- https://github.com/Crisu83/yii-app/blob/master/Vagrantfile
- https://github.com/dotzero/vagrant-yii-nginx-php_fpm/blob/master/Vagrantfile
Params:
- Host: MacMini (late 2012), OS X Mavericks + VirtualBox 4.3.10
- Guest: Precise32 (LAMP)