Fedora Linux Support Community & Resources Center
  #1  
Old 20th February 2008, 04:33 AM
our1944 Offline
Registered User
 
Join Date: Feb 2008
Posts: 3
weird apache 403 error

Hi all

I just installed the fedora8 yesterday. I also installed the apache php mysql. I disabled SElinux also.

The default test page seems fine in browser.
I link a directory in my /home/sebastian/workspace/www to the default /var/www/html. And try to access it via browser. The error page 403 comes out.
I checked the httpd.conf
Code:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And also the log
Code:
[Wed Feb 20 04:31:02 2008] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /var/www/html/www
In fact if I link any dir under /var/www to /var/www/html, It will be correctly displayed.

The dir /home/sebastian/workspace/www readable, that is 755, owned by my account
I also try to make the dir 777, but that is helpless.

And I tried to copy the dir to /var/www/html, and it works...

So I'm totally confused...
Reply With Quote
  #2  
Old 20th February 2008, 02:55 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
How did you create the link, can you post the exact command you used and also 'ls -l /home/sebastian/workspace'
Reply With Quote
  #3  
Old 20th February 2008, 05:16 PM
our1944 Offline
Registered User
 
Join Date: Feb 2008
Posts: 3
Thanks for replying.

I use chmod -R 755 dirname

I finally solved this problem.
The dir contains the document dir (in my case /home/sebastian/workspace/www) must be at least 755.
So I
Code:
chmod 755 /home/sebastian
this article may help somebody who comes across the same problem
http://www.unix.com/unix-advanced-ex...or-apache.html
Reply With Quote
  #4  
Old 20th May 2009, 10:41 PM
greg.harvey Offline
Registered User
 
Join Date: May 2009
Location: Uzès, France
Posts: 97
@our1944, this is gold dust! Finally, the solution I have been looking for! Been tearing my hair out. Thanks for posting. =)
__________________
>> Drupaler <<
Reply With Quote
  #5  
Old 20th May 2009, 11:59 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
rather than allowing everyone access to your home directory you could make apache a member of the group sebastian and chmod 750 instead (requires a reboot)

usermod -a -G sebastian apache

If selinux is enabled, it may generate errors, the audit report will tell you what to do (just run restorecon -R /home/user/www I think)
Reply With Quote
  #6  
Old 21st May 2009, 10:16 AM
greg.harvey Offline
Registered User
 
Join Date: May 2009
Location: Uzès, France
Posts: 97
Of course, great tip. Thanks! =)

Edit: added it to my blog post on the matter: http://www.drupaler.co.uk/blog/apach...ng-rid-403/418
__________________
>> Drupaler <<

Last edited by greg.harvey; 21st May 2009 at 10:52 AM. Reason: update to related blog entry - link posted for other reference
Reply With Quote
  #7  
Old 21st May 2009, 04:34 PM
our1944 Offline
Registered User
 
Join Date: Feb 2008
Posts: 3
@sideways
Thanks for your tips! They're very very useful.

@greg.harvey
You're welcome! I'm really happy that this thread is helpful to others.
Reply With Quote
Reply

Tags
403, apache, error, weird

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird error ijzer666 Using Fedora 7 17th July 2008 02:47 PM
A weird error with tor. DriftyFlintlock Servers & Networking 1 29th June 2008 07:57 PM
Apache acting weird? exutable Servers & Networking 1 29th October 2007 04:26 AM
Apache: browser shows blank screen. weird. jsabarese Servers & Networking 2 2nd June 2006 03:00 PM
What's going on here (weird Apache requests)? Anakrino Security and Privacy 7 23rd August 2005 08:10 AM


Current GMT-time: 16:10 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat