Having jumped through several hundred hoops I've finally managed to get Centos 5.8 to mount a VirtualBox shared folder (which is not read-only), which now appears at:
/media/sf_sites
This is a folder on my host machine (Mac OS X 10.8.2) containing sites.
The directory and its subfolders are all owned by user root and group vboxsf
I have added the user apache to the group vboxsf
However httpd doesn't let me use my shared folder as Document root. My vhost is set up as:
DocumentRoot /media/sf_sites/mysite/public
On Apache restart I get this:
Starting httpd: Warning: DocumentRoot [/media/sf_sites/mysite/public] does not exist
[ OK ]
And, unsurprisingly, when viewing the site in my browser I get a 403 error. ("You don't have permission to access / on this server.")
Any ideas whether it's possible to make this work?
I want to develop on my Mac but use Linux in VirtualBox as my development server. Is there an alternative way to do this?