LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 613|回复: 2

请问论坛目录下的文件权限怎么设置

[复制链接]
发表于 2005-6-2 11:29:45 | 显示全部楼层 |阅读模式
系统为Redlinux AS4
apache 版本为httpd-2.0.52-9.ent
PHP 版本php-4.3.9-3.1
由于论坛的所有文件是ftp上去的。使用SSH远程登陆后。
执行
chmod 777 bbs
打开浏览器显示无法访问
chmod 701 也无法访问
为什么我用vi写了index.html
"[root@**** html]# ll -a
总用量 24
drwxr-xr-x  2 root root 4096  6月  2 11:20 .
drwxr-xr-x  7 root root 4096  6月  2 08:04 ..
-rw-r--r--  1 root root   75  6月  2 11:20 index.html"
这样的权限设置可以打开页面.
那个bbs下的文件权限该怎么设置才能访问得到呢。
发表于 2005-6-2 14:00:40 | 显示全部楼层
你要注意Documentsroot目录的权限要为755其他人才能访问你的站点。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-2 16:23:40 | 显示全部楼层
还是出现如下错误
Forbidden

You don't have permission to access /bbs/ on this server.
目录权限设置为
[root@**** html]# ll -a
总用量 40
drwxr-xr-x   4 root   root          4096  6月  2 16:04 .
drwxr-xr-x   7 root   root          4096  6月  2 14:33 ..
drwxr-xr-x  11 apache administrator 4096  6月  2 16:02 bbs
-rw-r--r--   1 root   root            75  6月  2 11:20 index.html
drwxr-xr-x   2 root   root          4096  6月  2 14:34 test
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表