httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tinkee <>
Subject [users@httpd] Permission Problem
Date Wed, 05 Jan 2011 07:14:49 GMT


i am using apache as my webserver and i have a problem accessing my php
files in my browser,
it used to work properly until i think I messed up things.
now i don;t know what to do. T_T

everytime i open my php files which are on

it gives me the permission denied error.

i think i messed up with the chown and chgrp
i typed all these before this happened:
i think giving root the right to all apache resources. i probably was not
able to do it properly.

  # chown -R root:root /usr/local/apache
  # find /usr/local/apache -type d | xargs chmod 755
  # find /usr/local/apache -type f | xargs chmod 644 

  # chmod -R go-r   /usr/local/apache/conf   ->>im not too sure what this
  # chmod -R go-r  /usr/local/apache/logs 

 i wanted to change permissions so that my apache could create a file. 
 now it forbids me to do anything.
  even if i check on the status of my httpd:
 /usr/sbin/apachectl status

 It gives me this error:
    You dont have permission to access /server-status on this server.

  Same error is given when i try to access my http://localhost/ in the
    You dont have permission to access / on this server.
   Apache/2.2.3 (Red Hat) Server at localhost Port 80

 In the httpd/logs/error.log it gives me these errors:
 - (13)Permission denied: access to /denied
 -  (13) Permission denied: access to /favicon.ico denied 

 It seems to restrict me to access anything..

 please help, how do i revert back to normal?
 i need this to work properly again.

 I know it has something to do with the permission, when i run the httpd it
cannot get through / on the server even.. 

 thank you so much,

View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message