Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-12-2006, 11:29 AM
|
#1
|
LQ Newbie
Registered: Jun 2006
Location: Utrecht (The Netherlands)
Distribution: Fedora Core 5
Posts: 2
Rep:
|
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.
|
|
|
06-12-2006, 01:01 PM
|
#2
|
LQ Newbie
Registered: Aug 2005
Location: Wales
Distribution: Gentoo
Posts: 1
Rep:
|
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).
|
|
|
06-12-2006, 03:06 PM
|
#3
|
LQ Newbie
Registered: Jun 2006
Location: Utrecht (The Netherlands)
Distribution: Fedora Core 5
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
08-01-2006, 05:59 AM
|
#4
|
LQ Newbie
Registered: Aug 2006
Posts: 1
Rep:
|
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.
|
|
|
09-10-2006, 09:08 AM
|
#5
|
LQ Newbie
Registered: Sep 2006
Posts: 3
Rep:
|
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
|
|
|
04-05-2007, 03:56 PM
|
#6
|
Member
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|