LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2009, 10:38 PM   #1
deci007
Member
 
Registered: Sep 2007
Posts: 44

Rep: Reputation: 15
httpd: you don't have permission to access


i have httpd installed on RHEL5 webserver

but i have linked

#ln -s /rhelREPO /var/www/html/rhel5

/rhelREPO contains all 5cds of RHEL and it is a mount of /dev/sdb1

ip: 192.168.1.133 :works /var/www/html/index.html content is in browser
ip: 192.168.1.133/rhel5 :does not work /var/www/html/rhel5/
Forbidden

You don't have permission to access /rhel5 on this server.

i have changed
#/etc/httpd/conf/httpd.conf

</directory />

Options Indexes FollowSymLinks # i added Indexes
AllowOverride None

# i added next two line thinking it will work since the /rhelREPO is in / (root)

Order allow,deny
Allow from all

</Directory >

</directory "/var/www/html">

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

</Directory >


why is the directory not being indexed...
 
Old 11-05-2009, 01:56 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Normal permissions on the rhel5 directory; apache needs to have read permission on it.
Seeing that it's RHEL, it might be SELinux that does not allow access. I had a similar problem; see http://www.linuxquestions.org/questi...elinux-703273/
 
  


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 2 - RHEL4u5 - Permission denied: httpd: could not open error file vishwakumarbg Other *NIX 4 09-15-2008 03:36 PM
I have an apache problem Starting httpd: (13)Permission denied: make_sock: could not LinuxCrazy Linux - Server 1 06-24-2007 06:24 PM
FC5 cannot access httpd from outside box baddah Linux - Software 8 10-12-2006 10:20 AM
httpd access log entries hywaydave Linux - Security 3 02-11-2005 04:39 PM
Can't access ssh or httpd from outside subnet vortech Linux - Networking 1 10-03-2002 05:39 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration