Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-19-2007, 12:45 AM   #1
Registered: Oct 2005
Posts: 321

Rep: Reputation: 32
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, 07:55 AM   #2
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:

# 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:

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

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


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 04:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
Permission denied on Apache after install riluve Linux - Software 2 05-13-2006 10:44 PM
permission denied on .htaccess files in Apache scott.anderson Linux - Software 3 12-16-2005 12:19 PM
Permission Denied harlspy Linux - Newbie 8 12-07-2004 02:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration