LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2012, 11:15 AM   #1
rheluser
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
Symbolic link not allowed or link target not accessible


Hi everybody,

I read about treads realted to this issue but they did not resovle issue given below.
Please help me resolve issue given below

I have html file under /srv/www/htdocs/actual_folder
ls actual_folder/
test.html

and following link works
http://mysystem/actual_folder/test.html

then I created symbolic link
ln -s actual_folder symbolic_link

But, link with symbolic link folder doesn't work http://mysystem/symbolic_link/test.html
Browser displays Access forbidden! Error 403


A) Created conf file for apache : /etc/apache2/conf.d/myconf.conf

<Directory "/srv/www/htdocs/actual_folder">
Options Indexes FollowSymLinks MultiViews
Allow from all
</Directory>

<Directory "/srv/www/htdocs/symbolic_link">
Options Indexes FollowSymLinks MultiViews
Allow from all
</Directory>

Entry inside /etc/apache2/httpd.conf is as follows:
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
Deny from all
</Directory>

B) Apache log shows: Symbolic link not allowed or link target not accessible: /srv/www/htdocs/symbolic_link

C) Permissions:
ls -ld actual_folder/
drwxrwxrwx 2 root root 80 Sep 3 16:30 actual_folder/

ls -l symbolic_link
lrwxrwxrwx 1 root root 13 Sep 3 16:31 symbolic_link -> actual_folder

D) Suse Linux enterprise server 10 sp2


Thanks
 
Old 09-03-2012, 12:24 PM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
You can try to change the permissions of your '/srv/www/htdocs/' directory.

Code:
chmod 755 /srv/www/htdocs/
 
Old 09-03-2012, 11:26 PM   #3
rheluser
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Changed the permission as follows , and restarted Apache but it did not work.

Code:
chmod 755 /srv/www/htdocs/

Last edited by rheluser; 09-03-2012 at 11:28 PM. Reason: added CODE tags
 
Old 09-04-2012, 10:22 AM   #4
rheluser
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Issue is resolved.
My /etc/apache2/httpd.conf was including some conf files and in one of them "AllowOverride None" was set, i changed it to "AllowOverride All"
I had already set "Options Indexes Includes FollowSymLinks MultiViews" in conf file
Others if any facing this issue can try out same.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache 2 error - symbolic link not allowed zedmelon Linux - Server 13 02-25-2019 08:06 AM
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 06:47 AM
Symbolic link not allowed when file is bigger then 4GB PowerChaos Linux - Server 11 02-24-2010 09:39 AM
error 403 Forbidden symbolic link not allowed vree13 Linux - Software 8 02-14-2008 08:58 PM
Symbolic link not allowed gambrinus777 Linux - Server 3 09-07-2007 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration