Shared folders and Apache
Posted: 10. Feb 2011, 13:56
I've spent hours but failed to figure out, why Apache can't access my shared folder.
Info:
Host System: Windows 7 / 32
Guest: Fedora 14 (minimal installation with LAMP)
What I tried so far:
- I've put the apache user to the vboxsf group
- I've disabled sendfile and mmap in httpd.conf (http://forums.virtualbox.org/viewtopic. ... ache#p6680)
- I've tried different ways to mount/automount the shared (http://forums.virtualbox.org/viewtopic.php?f=3&t=38315) folder, also tried to set file system flags (fmode=777, dmode=777). For an example I now use: mount -t vboxsf -o rw,uid=48,gid=500,fmode=777,dmode=777 share /var/www/html/sahred_folder
(uid 48 is apache and gid 500 is vboxsf)
- Chaned httpd.conf to start the daemon with user apache and group vboxsf
- Set Apache log level to debug... Still I only see "Permission denied" error... even though it should have access...
So of course I can see/use the folder from command line. But I have no clue why Apache isn't able to access the folder.
Info:
Host System: Windows 7 / 32
Guest: Fedora 14 (minimal installation with LAMP)
What I tried so far:
- I've put the apache user to the vboxsf group
- I've disabled sendfile and mmap in httpd.conf (http://forums.virtualbox.org/viewtopic. ... ache#p6680)
- I've tried different ways to mount/automount the shared (http://forums.virtualbox.org/viewtopic.php?f=3&t=38315) folder, also tried to set file system flags (fmode=777, dmode=777). For an example I now use: mount -t vboxsf -o rw,uid=48,gid=500,fmode=777,dmode=777 share /var/www/html/sahred_folder
(uid 48 is apache and gid 500 is vboxsf)
- Chaned httpd.conf to start the daemon with user apache and group vboxsf
- Set Apache log level to debug... Still I only see "Permission denied" error... even though it should have access...
So of course I can see/use the folder from command line. But I have no clue why Apache isn't able to access the folder.