Re: 403 Forbidden error

This is a discussion on Re: 403 Forbidden error within the Apache Web Server forums, part of the Web Server and Related Forums category; Have you checked the permission of the file? In shell: go to the folder where your doc is. type: ls -...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-16-2003
hort nerd
 
Posts: n/a
Default Re: 403 Forbidden error

Have you checked the permission of the file?

In shell: go to the folder where your doc is.
type: ls -la
look for the document's permission structure.
-rw------- 1 username group 0 Aug 16 08:41 test.html
if you see '-rw-------' you know you cannot read it from the web.

So, type:
chmod 644 test.html

You should now see this when you type ls -la:
-rw-r--r-- 1 username group 0 Aug 16 08:41 test.html

Regardless of username, it should now be available for view on the web
if the document is placed above the web root.

Chris









"Tux" <andrewjj20@telus.net> wrote in message news:xLm%a.5821$ew2.2285@edtnps84...
> I have set the owner of a file group and changed the user
> name on apache several times, but I still get a page that says
> 403 forbidden error when I try to acces it, can someone help me
>
> andrewjj20



  #2 (permalink)  
Old 08-16-2003
Josh
 
Posts: n/a
Default Re: 403 Forbidden error

hort nerd wrote:

> Have you checked the permission of the file?
>
> In shell: go to the folder where your doc is.
> type: ls -la
> look for the document's permission structure.
> -rw------- 1 username group 0 Aug 16 08:41 test.html
> if you see '-rw-------' you know you cannot read it from the web.
>
> So, type:
> chmod 644 test.html
>
> You should now see this when you type ls -la:
> -rw-r--r-- 1 username group 0 Aug 16 08:41 test.html
>
> Regardless of username, it should now be available for view on the web
> if the document is placed above the web root.
>
> Chris
>
>
>
>
>
>
>
>
>
> "Tux" <andrewjj20@telus.net> wrote in message
> news:xLm%a.5821$ew2.2285@edtnps84...
>> I have set the owner of a file group and changed the user
>> name on apache several times, but I still get a page that says
>> 403 forbidden error when I try to acces it, can someone help me
>>
>> andrewjj20

It didn't work, I just changed the permissions, and still get
403 Forbidden error, I did what you said, then even set the owner to
apache and the group to apache, then restarted apache, and still get the
error.
  #3 (permalink)  
Old 08-16-2003
Michael Forster
 
Posts: n/a
Default Re: 403 Forbidden error


"Josh" <andrewjj20@yahoo.com> wrote in message
news:iht%a.7643$ew2.6088@edtnps84...
> hort nerd wrote:
> It didn't work, I just changed the permissions, and still get
> 403 Forbidden error, I did what you said, then even set the owner to
> apache and the group to apache, then restarted apache, and still get the
> error.


One question!
Where on your server is the file?
What <directory> directive covers the location?
(ie does it have something like
<Directory />
Deny from all
</Directory>
)
Do you have any File directive that is also doing a Deny All

Mike.


  #4 (permalink)  
Old 08-16-2003
Josh
 
Posts: n/a
Default Re: 403 Forbidden error

hort nerd wrote:

> Have you checked the permission of the file?
>
> In shell: go to the folder where your doc is.
> type: ls -la
> look for the document's permission structure.
> -rw------- 1 username group 0 Aug 16 08:41 test.html
> if you see '-rw-------' you know you cannot read it from the web.
>
> So, type:
> chmod 644 test.html
>
> You should now see this when you type ls -la:
> -rw-r--r-- 1 username group 0 Aug 16 08:41 test.html
>
> Regardless of username, it should now be available for view on the web
> if the document is placed above the web root.
>
> Chris
>
>
>
>
>
>
>
>
>
> "Tux" <andrewjj20@telus.net> wrote in message
> news:xLm%a.5821$ew2.2285@edtnps84...
>> I have set the owner of a file group and changed the user
>> name on apache several times, but I still get a page that says
>> 403 forbidden error when I try to acces it, can someone help me
>>
>> andrewjj20

they are both DocumentRoot

  #5 (permalink)  
Old 08-16-2003
Josh
 
Posts: n/a
Default Re: 403 Forbidden error

Josh wrote:

> hort nerd wrote:
>
>> Have you checked the permission of the file?
>>
>> In shell: go to the folder where your doc is.
>> type: ls -la
>> look for the document's permission structure.
>> -rw------- 1 username group 0 Aug 16 08:41 test.html
>> if you see '-rw-------' you know you cannot read it from the web.
>>
>> So, type:
>> chmod 644 test.html
>>
>> You should now see this when you type ls -la:
>> -rw-r--r-- 1 username group 0 Aug 16 08:41 test.html
>>
>> Regardless of username, it should now be available for view on the web
>> if the document is placed above the web root.
>>
>> Chris
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> "Tux" <andrewjj20@telus.net> wrote in message
>> news:xLm%a.5821$ew2.2285@edtnps84...
>>> I have set the owner of a file group and changed the user
>>> name on apache several times, but I still get a page that says
>>> 403 forbidden error when I try to acces it, can someone help me
>>>
>>> andrewjj20

> they are both DocumentRoot

I am about ready to reinstall linux to repaire the permissions to the /var/
directory

  #6 (permalink)  
Old 08-16-2003
Josh
 
Posts: n/a
Default Re: 403 Forbidden error

Josh wrote:

> Josh wrote:
>
>> hort nerd wrote:
>>
>>> Have you checked the permission of the file?
>>>
>>> In shell: go to the folder where your doc is.
>>> type: ls -la
>>> look for the document's permission structure.
>>> -rw------- 1 username group 0 Aug 16 08:41 test.html
>>> if you see '-rw-------' you know you cannot read it from the web.
>>>
>>> So, type:
>>> chmod 644 test.html
>>>
>>> You should now see this when you type ls -la:
>>> -rw-r--r-- 1 username group 0 Aug 16 08:41 test.html
>>>
>>> Regardless of username, it should now be available for view on the web
>>> if the document is placed above the web root.
>>>
>>> Chris
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> "Tux" <andrewjj20@telus.net> wrote in message
>>> news:xLm%a.5821$ew2.2285@edtnps84...
>>>> I have set the owner of a file group and changed the user
>>>> name on apache several times, but I still get a page that says
>>>> 403 forbidden error when I try to acces it, can someone help me
>>>>
>>>> andrewjj20

>> they are both DocumentRoot

> I am about ready to reinstall linux to repaire the permissions to the
> /var/ directory

nevermind I am reinstalling linux

andrewjj20
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0