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? |
first you have to edit httpd.conf file
next service httpd restart next chmod -R 755 /xxx |
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 |
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.
|
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. |