I have an index file that was formerly a simple index.html file. I had this file saved as
/datalib/Dropbox/foobar/index.html and linked from the foobar subdirectory of my Apache root directory with a symlink:
Code:
index.hmtl -> /datalib/Dropbox/foobar/index.html
All worked well when I pointed my browser to
http://localhost/foobar/index.html
Then I added some PHP coding. During the writing and testing process, I had the
index.php file in the foobar subdirectory of my Apache root directory, and again all worked well: I was able to open it by pointing my browser to
http://localhost/foobar/index.php
However, when I moved the PHP file into the
/datalib/Dropbox/foobar subdirectory and set up a symlink in the foobar subdirectory of the Apache root directory, I cannot open it in my Firefox browser. I get the message
403 Forbidden and I'm told I "don't have permission" to access the file on this server.
In short, I can open an index.html file either directly or through a symlink, and I can open the index.php file directly, but
not through a symlink (even after rebooting the computer). File permissions are 775 all the way down to the Apache root.
Any ideas where I should look for the problem?