Results 1 to 2 of 2
hi,
i have a problem accessing my php files in my browser, i am using apache as my webserver. i am on RHEL 5
it used to really work properly ...
- 01-05-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
permission problem
hi,
i have a problem accessing my php files in my browser, i am using apache as my webserver. i am on RHEL 5
it used to really work properly until i messed up things.
now i don;t know what to do.
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:
------------
# 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
# chmod -R go-r /usr/local/apache/logs
--------------------------------------
wanting 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
gives me this error:
Forbidden
you dont have permission to access /server-status on this server.
my logs in the httpd/logs/error.log says:
- (13)Permission denied: access to /denied
- (13) Permission denied: access to /favicon.ico denied
it seems to restrict me to access anything..
when i access localhost it gives me this:
Forbidden
You dont have permission to access / on this server
Apache/2.2.3 (Red Hat) Server at localhost Port 80
please help, how do i revert back to normal?
i really need this to work properly again asap
thank you so much,
tinksLast edited by tinks; 01-05-2011 at 02:29 AM. Reason: additional info
- 01-05-2011 #2Just Joined!
- Join Date
- Jan 2011
- Posts
- 2
Permission Problem - solved
just for the record, problem's solved already
i just checked the permissions of the document roots..
#namei -m /document/root/path
and the permissions were set to 644
replace it with 755
#chmod -R 755 /document/root/path ->recursively changes permission
and then
#ls -ld /var/www/html/
#ls -ld /var/www
#ls -ls /var
to check that it has the 755..
cheers!


Reply With Quote