I am using XAMPP-VM for Mac. I have recently upgraded to the VM version from the Mac App version.
I am trying to keep my source files in my local directory, and do not wish to move them into the VM. Therefore I am trying to symlink from the VM htdocs folder to my local files.
Using Terminal, I executed:
- Code: Select all
ln -s /srv/www/htdocs/mywebsite /opt/lampp/htdocs/mywebsite
The link installs fine and follows correctly. However Apache will not follow the link. It responds with:
Error 403 Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
Permissions in /opt/lampp/htdocs/:
lrwxrwxrwx 1 1000 1000 29 27 Feb 15:30 mywebsite -> /srv/www/htdocs/mywebsite
Permissions in /srv/www/htdocs/:
drwxr-xr-x 41 User wheel 1312 27 Feb 15:21 mywebsite
I have tried changing ownership and permissions of the target and source to match. It seems the VM htdocs does not allow changing of the ownership, and the local file system htdocs does not recognize ownership of 1000.
FollowSymLinks is active in the httpd.conf
How can I link from the VM so Apache will follow the symlink into my local file structure?