I’m trying to setup a project using the Symfony framework. I don’t want the whole thing being accessible to the web, so I’m not putting it in the document root. Instead, I want to create a symbolic link from a directory in the document root to the web directory under the framework.
I did this:
ln -s /path/to/project/web /path/to/docroot/projectname
The link was created. But when I try to browse to it, I get:
$ tail -1 /var/log/apache2/error_log [Sat Mar 03 14:13:39 2012] [error] [client ::1] Symbolic link not allowed or link target not accessible: /path/to/docroot/projectname
The thing is, the permissions are fine, so it should be able to access it fine. Everything is readable and the directories are executable.
drwxr-xr-x+ 805 brandonolivares staff 27370 Mar 3 02:09 web
lrwxr-xr-x 1 brandonolivares staff 82 Mar 3 02:42 projectname -> /path/to/project/web
Also, FollowSymLinks is enabled as far as I can tell.
Any help would be appreciated.