Monday, July 03, 2006

"Symbolic link not allowed or link target not accessible..."

Apache 2 refused to serve pages with that claim in the error_log (Suse 10.1). I had tried everything (permissions, ownership, etc.) - nothing worked. My httpd.conf piece looked really perfect:

<Directory "/srv/www/htdocs">
                Options FollowSymlinks
                AllowOverride None
                Order allow,deny
                Allow from all
</Directory>


and no success. Then, I found the line in the httpd.conf:

Include /etc/apache2/default-server.conf

Yes, yes, that include file contained a configuration for the document root, and certainly overwrote my settings. So, if your settings look really good, and the symlink problem still exists - look for such an include.

The problem seems to be obvious - but search Google for it, and you may be surprised...

Headache gone after a solution in this blog? Then if you think... ;)





5 Comments:

Anonymous Anonymous said...

This could also be a security issue on redhat enterprise 4.
edit /etc/selinux/config
change to
SELINUX=permissive

you might have to restart the server.
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/selinux-guide/

8:11 PM  
Anonymous Anonymous said...

Well, this end my pain to setup the bugzilla on SuSe 10.1

10:09 AM  
Anonymous TheBlatherskite said...

Thank You!

I'd been searching google for quite some time, but to no avail - this was a life saver. Sneaky includes undoing all my careful configuration...

Keep up the good work!

5:54 AM  
Anonymous Anonymous said...

Thank you!!!!! How many hours have I spent on this so far....

7:38 PM  
Anonymous Anonymous said...

Wow, this helped me fix some problems I could never figure out, thanks a bunch!

12:50 AM  

Post a Comment

<< Home