Originally Posted by areopagus
[ snip ]
Originally, I thought this was a question about linking. It's not. It's strictly a XAMPP question, so maybe it doesn't belong on this forum at all. Basically, XAMPP will give the 403 error if I try to go to any subdirectory under /opt/lampp/htdocs/ other than the two that were there to start (webalizer and xampp). Again, it's not a permissions problem. I set the permissions to match the permissions of webalizer and xampp. I've looked all over the web and nobody seems to have run into this before. Lots of Linux howtos about how easy XAMPP is to use. Perhaps my computer is the only one on earth with this problem.
No, the problem is that many servers refuse to follow symlinks - Apache won't unless you insist. You are better off creating an alias in the server's configuration file -- it's easier than creating symlinks:
Alias (virtual server directory name) (real path)
The above is Apache syntax, but something similar is probably available for XAMPP.
As to creating symlinks, a problem comes up if you create a symlink, then forget and create it again -- the second action will create a symlink in the directory path created by the first. To avoid this, always specify symlinks this way:
$ symlink -nsf (source) (destination)
This invocation forces removal of any original symlink before recreating it.