I'm setting up my local LAMP server, and when I go to it, I can't follow symlinks with the Apache user (www-data). At this point, I've tried chowning and chmoding and I've added
Options FollowSymLinks to my httpd.conf file for my DocumentRoot. I'm at a loss.
So here's what I'm going to ask:
If you were setting up your Apache with a standard 11.10 LAMP install, what would be the steps you would take to get symlinks to work correctly for the Apache user?
This sounds like a permissions issue. Make sure that each directory and parent directory that Apache must access (both in /var/www and in the symlinks' target directories) has the global execute bit set.
For example, if your symlinks point to /home/somebody/www, do this:
It is not necessary to set read access on any directory; only the files that Apache is supposed to read must have appropriate read permissions.
I would look at the permissions with my
pathlld
script (http://paste.ubuntu.com/757530/):An example of
pathlld
:example:
now you need:
1) set apache as owner of your proyect
2) set +x permissions on each folder to your path
Now you can see your project on
http://localhost
.if any problems try:
restart apache
if the problem persists make apache user owner of the link
if the problem persists add execution permissions on your home