LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-12-2006, 11:29 AM   #1
pdevr99
LQ Newbie
 
Registered: Jun 2006
Location: Utrecht (The Netherlands)
Distribution: Fedora Core 5
Posts: 2

Rep: Reputation: 0
Angry Apache 2.2 on FC5 and symbolic links/symlinks


Recently upgraded to Fedora Core 5 (from FC4) which includes Apache 2.2. I've got a symbolic link in my /var/www/html directory to a development directory which worked fine in the old situation. With FC5/Apache 2.2 I get
"Symbolic link not allowed or link target not accessible"
messages in my httpd error_log (and no access to my files). I've tried about everything: file permissions, options in httpd.conf, etc, etc but cannot get it to work. Also cannot find any references to changes in either FC5 or Apache 2.2 documentation...VERY frustrating!

Anybody experienced similar things? Suggestions?

Tia,
Peter.
 
Old 06-12-2006, 01:01 PM   #2
Aeternus
LQ Newbie
 
Registered: Aug 2005
Location: Wales
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
You mentioned "options in httpd.conf". Does that mean you've tried Option +FollowSymlinks ? (this may be something obvious, but "options in httpd.conf" is rather vague, sorry).
 
Old 06-12-2006, 03:06 PM   #3
pdevr99
LQ Newbie
 
Registered: Jun 2006
Location: Utrecht (The Netherlands)
Distribution: Fedora Core 5
Posts: 2

Original Poster
Rep: Reputation: 0
Bit vague indeed, sorry. But yes, FollowSymLinks, SymLinksIfOwnerMatch, all that. I'm reading in other threads and forums that SELinux sometimes messes things up; my server is running with SELinux disabled.
 
Old 08-01-2006, 05:59 AM   #4
grey_kristy
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by pdevr99
Recently upgraded to Fedora Core 5 (from FC4) which includes Apache 2.2. I've got a symbolic link in my /var/www/html directory to a development directory which worked fine in the old situation. With FC5/Apache 2.2 I get
"Symbolic link not allowed or link target not accessible"
messages in my httpd error_log.

Anybody experienced similar things? Suggestions?

Peter.
Please check full path to you work directory. I've got my work directory in my home, and home by default have permissions drwx------.
When I change permisions to drwxr-xr-x all work fine. So all directory in the path should be readable and executive.
 
Old 09-10-2006, 09:08 AM   #5
erezhdd
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
I have encountered the same problem as pdevr99. However, I've also noticed that SELinux generates an error message in /var/log/messages whenever a browser tries to access a page that is sym-linked to /var/www/html. I have also confirmed that SELinux is responsible by turning off SELinux control on the httpd daemon (using the GUI tool for SELinux provided in System->Administration menu). This means that the problem is in the SELinux httpd policy, but I don't know how to tune it. Any suggestions?

Erez
 
Old 04-05-2007, 03:56 PM   #6
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
I've got a similar problem. My directories are as follows:

Code:
[root@69-64-69-24 www]# pwd
/home/www
[root@69-64-69-24 www]# ls -lah
total 60K
drwxrwxrwx 4 root root 4.0K Apr  5 13:50 .
drwxrwxrwx 5 root root 4.0K Nov 29 10:40 ..
lrwxrwxrwx 1 root root   26 Mar 23 06:36 ckesler -> /home/ckesler/public_html/
drwxrwxrwx 2 root root 4.0K Nov 29 10:40 css
-rwxrwxrwx 1 root root   24 Mar 15 06:40 googlehostedservice.html
drwxrwxrwx 3 root root 4.0K Nov 29 10:40 img
-rwxrwxrwx 1 root root 3.5K Mar 13 14:28 index.html
-rw-r--r-- 1 root root  35K Apr  5 13:50 index.php
lrwxrwxrwx 1 root root   27 Apr  5 11:38 mcupples -> /home/mcupples/public_html/
lrwxrwxrwx 1 root root   27 Apr  5 11:38 mmongeau -> /home/mmongeau/public_html/
Now, the only problematic thing is that /home/www is not a real directory but a symlink itself. The real directory is /var/www/vhosts/default/htdocs. I don't think there's any issue with that, I just set it up that way so I didn't have to type all that out every time I go there.

I would post my httpd.conf file here but I'm afraid I'll get yelled at. Instead, I just hosted it at http://mcupples.com. It's the index page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache & symbolic links zeky Linux - Software 3 06-19-2008 09:23 AM
FC5 Apache can't display symlinks bricox Linux - General 6 11-22-2006 01:31 AM
strange question regarding symbolic links and apache drisay Slackware 3 11-16-2004 11:14 AM
help with symbolic links sopiaz57 Linux - General 2 06-11-2004 06:17 PM
Apache and Symbolic Links epeus Linux - General 2 11-09-2002 11:52 PM


All times are GMT -5. The time now is 07:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration