0

Apache 403 Forbidden Error and this one ugly..

My server is Unmanaged - So I tried hared to fix this but I can't.. Please help me..

If I create any directory http://www.myurl.com/anything =I got Forbidden error.
If I Put any .php file http://www.myurl.com/anything.php =I got Forbidden ERROR.
If I Put any .cgi file http://www.myurl.com/anything.cgi =I got Forbidden ERROR.

Only .html and htm files works.. ever phpinfo.php files shows Forbidden ERROR. :(

Please help me out.. I'll be very grateful..

Thank you.

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by tinkee
0

Hi,

You can try this command:

#chmod 777 /var/www/html/

Because this is permission related error.

0

Before going to give 777 permission to ur documentroot, make sure what access you give the owner, group, and others. 777, probably is a bad idea. That will cause hacking simple.

0

i think we have similar problem

try to check the permissions in your document root:

#namei -m /document/root/path

if its not in the 755 permissions try to replace it until the root..

#chmod -R 755 /document/root/path ->recursively changes permission
mine was:
#chmod -R 755 /var/www/html

and then

#ls -ld /var/www/html/
#ls -ld /var/www
#ls -ls /var

to check that it has the 755 permission already..

i hope it'll work for you.

-tinks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.