LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2007, 01:45 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 310

Rep: Reputation: 30
Permission denied in apache


I download and install httpd-2.2.4.tar.gz. Then I install nagios. In my other server, http is installed via RPM. Now, I'm installing it using source.

Problem is it saying 403 Forbidden. I check log of httpd and it says:
Permission denied: access to /nagios/ denied

html files are stored in share dir under nagios dir. Here is the permission:

drwxrwxrwx 9 nagios apache 4096 May 19 13:15 share

Is there a problem in my permission?
 
Old 05-20-2007, 08:55 AM   #2
Brad.Scalio@noaa.gov
Member
 
Registered: Jan 2007
Location: Washington DC
Distribution: RedHat & spins ... Fedora, CentOS, Mandriva
Posts: 82

Rep: Reputation: 15
Do you have SELinux in enforcing mode, if so:

Code:
# semanage fcontext -l | grep "/var/www"
/var/www(/.*)?        all files          system_u:object_r:httpd_sys_content_t:s0
-- make sure the dir you are sharing as web content have the correct security context

-- you can do:

Code:
# restorecon -R /var/www/*
this should make the security context of the new dir the same as the parent
 
Old 05-20-2007, 07:15 PM   #3
packets
Member
 
Registered: Oct 2005
Posts: 310

Original Poster
Rep: Reputation: 30
I'm using redhat 9. I dont think it has SELinux.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Permission denied on Apache after install riluve Linux - Software 2 05-13-2006 11:44 PM
permission denied on .htaccess files in Apache scott.anderson Linux - Software 3 12-16-2005 01:19 PM
Permission Denied harlspy Linux - Newbie 8 12-07-2004 03:52 PM


All times are GMT -5. The time now is 02:19 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