I'm trying to use a TurnKey LAMP server as a sandbox web-development environment for a project with components in php and binary executables. My host machine is OS 10.6. I want to use AFP to serve a directory from my host machine so that I can make changes and quickly test them (i.e. a sandbox). I did a lot of research to get the virtual machine (running Ubuntu) to mount an AFP share and was finally successful, but I have run into configuration problems with Apache that cause it to raise a 403 error for the shared directory. I just need some help getting Apache configured to serve this directory.
Here are the steps to reproduce the situation:
- Download and install the TurnKey LAMP server.
- While you wait, download afpfs-ng.
- Also while you wait, set up an additional afp share on the mac with an easy username and password.
- Run the following commands on the shell of the lamp vm.
- apt-get install build-essential libfuse-dev libreadline-dev libgcrypt11-dev libgmp3-dev libgmp3c2 libgmpxx4ldbl
- modprobe fuse
- copy the afp tarball to the vm
- tar -xf afpfs-ng-0.8.1.tar.bz2
- cd afpfs-ng-0.8.1
- make install
- cd /var/www
- mkdir shared_via_afp
- mount_afp 'afp://user:-@host_computer/share-name' shared_via_afp
Trying to access this directory from a web browser just raises a 403. What next?
Here are the resources I used to get afp to work: