LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Errot 403 on 666 permission file (https://www.linuxquestions.org/questions/linux-software-2/errot-403-on-666-permission-file-369894/)

baosheng 10-05-2005 01:26 AM

Errot 403 on 666 permission file
 
I encounter a strange problem today.
I used chmod command in my web page directory,/www.I changed all file privilege into 666 in order to allow all php scripts write files.
But when I access them vary http in the browser,the browser said

Forbidden

You don't have permission to access /blogcms/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.54 (Unix) PHP/4.3.11 Server at 127.0.0.1 Port 80

I was puzzled.

can anyone help me?

lanczer 10-05-2005 07:16 AM

first you have to edit httpd.conf file
next service httpd restart
next chmod -R 755 /xxx

baosheng 10-08-2005 02:41 AM

It's funny
if I
chmod 666 *
or
chmod 666 * -R
I can't access files via HTTp

but if I
chmod a+x * -R
it's accessable

spooon 10-08-2005 03:46 AM

Directories need to (and only need to) have execute permission for you to access stuff inside it. So what you have is probably something inside a directory that is not executable. On directories, read permission lets you list it, and write permission lets you create or delete files in it, but it is execute permission which allows you to access files and directories inside. In fact, a directory with just execute permission and no read or write permission will allow you to access its contents fine, if you know their names; but you won't be able to list the names of its contents.

jtshaw 10-10-2005 05:00 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

If your question hasn't been answered continue this dicussion here.


All times are GMT -5. The time now is 10:40 PM.