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 -...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
"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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |