httpd-users mailing list archives

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

hi!

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
/var/www/htm/

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
does.
  # 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:
    Forbidden
    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
browser:
    Forbidden
    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,
tinks


 
-- 
View this message in context: http://old.nabble.com/Permission-Problem-tp30593599p30593599.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message