Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have Mac OS 10.8 as host system and CentOS 6 as guest system with Virtual Box 4.1.18 I create shared folder and successfully mount it to guest system.

Line in /etc/fstab

php   /var/www/centos.dev     vboxsf  defaults,uid=500,gid=500  0 0

So its mounted with my user. But when apache creates folders or files on this folder they have my user and group as owner as well! So apache don't have write permissions to files it was created itself. In /etc/httpd/conf/httpd.conf I have

User apache
Group apache

And files not on vbox shared folder created with this user and group.

Why is it happening and how can I fix it?

share|improve this question
add comment

1 Answer

Disable sendfile mechanism and try again:

EnableSendfile Off
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.