Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89619
Change subject: Fix logging with a separate dir and www-data as user and group
......................................................................
Fix logging with a separate dir and www-data as user and group
The PHP code runs as user and group www-data. However, neither the
www-data user nor group has write access to /vagrant.
It does need to write to this directory in general, but it does need
to write logs, so this setups a synced directory for that. The paths
are the same as before in both the host and guest.
Change-Id: I0352239e774a2d17237301b283245b26dddbae02
---
M Vagrantfile
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/19/89619/1
diff --git a/Vagrantfile b/Vagrantfile
index 3e31518..a8aa7ab 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -55,6 +55,13 @@
owner: 'vagrant',
group: 'www-data'
+ # www-data needs to write to the logs, but doesn't need write
+ # access for all of /vagrant
+ config.vm.synced_folder './logs', '/vagrant/logs',
+ id: 'vagrant-logs',
+ owner: 'www-data',
+ group: 'www-data'
+
config.vm.provider :virtualbox do |vb|
# See http://www.virtualbox.org/manual/ch08.html for additional
options.
vb.customize ['modifyvm', :id, '--memory', '768']
--
To view, visit https://gerrit.wikimedia.org/r/89619
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0352239e774a2d17237301b283245b26dddbae02
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits