Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 21st, 2004, 03:39 AM
Madhusudhan Madhusudhan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Bangalore, India
Posts: 2 Madhusudhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Madhusudhan
Apache on RedHat Linux ... Permission Denied Error

I have a Linux box with RedHat 9.0. When I try to hit my local website hosted on the Apache server (using php and mysql -- all services are running including httpd) it shows up an error saying "permission denied". I get this error even when I have logged in as the root.Any solutions?

Reply With Quote
  #2  
Old January 21st, 2004, 07:36 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
What're the permissions on the document root?

Reply With Quote
  #3  
Old January 21st, 2004, 09:44 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
When you installed redhat did you do the default installation of apache or is it a custom installation? What is apache running as? Is it running as apache (hopefully you have it set to that or something else other than root) Make sure that whatever apache is running as (in mine it's apache) make sure the folder that the www directory (including binaries, etc) permissions are set appropriately for the correct user (in my case apache)

Make sure that the user has the correct permissions as dhouston stated

mine are:

drwxr-xr-x 18 apache apache

You can find out what the permissions are by doing ls -lar /whatevertherootdirectoryisforapache

example, say your apache dir is in /www, you'd type
Code:
 ls -lar www
and it would list the permissions for the directories..

HTH

Reply With Quote
  #4  
Old January 21st, 2004, 11:00 PM
Madhusudhan Madhusudhan is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Bangalore, India
Posts: 2 Madhusudhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Madhusudhan
I used the default installation of apache.
It is running as apache.The permissions are drwxr-xr-x.What else could be wrong ........... I tried to find the answers on google but nothing I tried works.

Reply With Quote
  #5  
Old January 21st, 2004, 11:03 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Would Apache's logs be of any help?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache on RedHat Linux ... Permission Denied Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway