|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
What're the permissions on the document root?
|
|
#3
|
||||
|
||||
|
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 HTH |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
||||
|
||||
|
Would Apache's logs be of any help?
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache on RedHat Linux ... Permission Denied Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|