I have an Ubuntu Server (12.04) running on my development machine. It is in a VM. I have succeeded with the task of setting up Apache2, MySQL, and PHP. I can access the server from my host browser by pointing it to the IP. Hurray!
My next task is to set up the filesystem so that I can edit project files on my host computer (Mac OS X 10.7) hit save and view them in my browser through the Linux server.
How I am trying to accomplish this is by sharing a folder on my Mac with the VM, which mounts to /mnt/hgfs/foldername
. Then I pointed my virtual host in Apache2 to that folder. chmod
the folder to 777
for testing purposes and tried to access the files from my Mac. I get a 403 Forbidden
.
How can I set up the VM to share a folder with my Mac so that I don't have to FTP all my files to the server? A thought a had was rsync
the /mnt/hgfs/*
folder to the public_html
Best Answer
You need to make sure Apache has permissions all the way down to the public folder. Other then that it should wok fine, I do it all the time.
cmhod o+rx /mnt
chmod o+rx /mnt/hgfs/
chmod o+rx /mnt/hgfs/foldername
apache probable can't get into mnt