Forum archive
[SOLVED] Apache2 on Turnkey LAMP appliance has insufficient permissions to read fstab-mounted Virtualbox shared directory
Hello, Turnkey Community!
Background
With the intent to create a development-testing server for website development, I imported the Turnkey LAMP virtual appliance into Virtualbox. My workflow is such that all of my working files are stored on my host machine (Windows 8) in a directory, say M:\Websites.
My desire being to access the sites contained in this directory by simply visiting the URL "http://{LAMP Appliance IP}/{Site subdirectory}," I followed the directions specified in this Turnkey Documentation Tutorial on mounting shared files with Turnkey Linux and Virtualbox in order to create an entry in /etc/fstab that automatically mounts my M:\Websites directory to /var/www/sites via filesystem loopback. The contents of my new entry are as follows:
/media/sf_Websites /var/www/sites bind defaults 0 0To complete the process I proceeded to set the document root for my *:80 virtual server to /var/www/sites as opposed to the standard /var/www.
Problem
While my fstab entry is succesful (verified by my ability to browse the contents of M:\Websites by transversing /var/www/sites from the LAMP appliance command-line, SSH, and Web-shell), I am given only 403: Forbidden errors when I attempt to visit the URL "http://{LAMP Appliance IP}" or any sub-directory.
Executing "ls -l" within the /var/www directory displays the following permissions for my "sites" mount:
drwxrwx--- 1 root vboxsf 16384 May 1 21:37 sites
What am I missing here??
Hey Jeremy!
Absolutely no worries, mate! As a whole the tutorial was great, and even having to dig around on-line I can't complain about learning more Linux tricks ;) . Rock on friend.