LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 05-11-2007, 05:56 PM   #1
japega
Member
 
Registered: Mar 2006
Location: D.F., México
Distribution: Fedora
Posts: 42

Rep: Reputation: 15
Unhappy httpd forbidden message on FC6


Hi there. I have Fedora Core 6 on my computer and Apache 2.2.4, and I have tried to run apache server as localhost and when I run apache server and try to get the http://localhost test page I have response. I can see tha page test of apache, that means that apache is working, but qhen I tryed to get into some of my sites that they are in this location /home/user/sites.

I have modified the httpd.conf archive in the Alias secction and put the following:

# Alias of user
Alias /sites/ "/home/user/sites/"
<Directory "/home/user/sites">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I have restarted the apache server and get OK message qhet I tried to start httpd deamon. But if I want to get into http://localhost/sites/ I get the firbidden message:

Forbidden
You don't have permission to access /sites/ on this server.
-------------------------------------------------------------------
Apache/2.2.4 (Fedora) Server at localhost Port 80

I have read on other forums that I need to allow that directory to the apache user, so I have to put the permision to do this on /home/user

drwxr-xr-x 31 user user 4096 mar 27 07:22 sites

But I get the same message. I have read in other place thata maybe SELinux in obtructed httpd and makes this message happen, so I go to the SELinux and disbled to httpd deamon, but I get the same message.

Can anybody help me? Thanks.

NOTE: Sorry about my english...
 
Old 05-12-2007, 11:41 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
You need to enable the userdir module in your httpd.conf, give your users home directories and the ~/public_html directories permissions of 755. You will also need to configure selinux to allow access to users ~/public_html directories. You can do this use the selinux configuration GUI or by doing
Code:
#chcon -R -t httpd_used_content_t /home/SOMEUSER/public_html
 
  


Reply

Tags
fc6


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPD Virtual Host limit forbidden error, how to increase? norbul Linux - Software 1 05-11-2006 05:59 AM
Forbidden error in httpd hrajabi Linux - Networking 11 10-24-2005 03:03 AM
HTTPD ERROR: FORBIDDEN (rh 9.0) swatward Linux - Software 1 02-27-2005 06:52 PM
Vqadmin.cgi, 403 Forbidden Erros, and httpd.conf woe opioid Linux - Software 3 05-11-2004 08:08 AM
403 forbidden access on httpd service roguecoolman Linux - Newbie 1 09-23-2003 05:08 PM


All times are GMT -5. The time now is 05:57 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
Open Source Consulting | Domain Registration