Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/     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

Disable sendfile mechanism and try again:

EnableSendfile Off
share|improve this answer

Your Answer


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.