免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2158 | 回复: 1
打印 上一主题 下一主题

关于Apache所访问文件权限的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-03 14:18 |只看该作者 |倒序浏览
[root@vpsip templates]# ll
-rw-r--r-- 1    512  513 3946 02-17 10:36 about.html
-rw-r--r-- 1    512  513 1347 02-07 08:59 bag.html
-rw-r--r-- 1    512  513 1104 02-07 00:58 brand.html
drwxrwxrwx 2    512  513 4096 01-05 21:34 caches
drwxrwxrwx 2    512  513 4096 02-28 19:18 compiled
-rw-r--r-- 1    512  513 2364 01-31 19:17 cosmetic.html
-rw-r--r-- 1    512  513 1347 02-07 08:59 decoration.html
-rw-r--r-- 1    512  513 1348 02-07 08:58 dress.html
-rw-r--r-- 1    512  513 1069 02-08 19:08 footer.html
-rw-r--r-- 1    512  513 2093 02-15 21:25 header.html
-rw-r--r-- 1 apache root 4245 2009-03-01 index.html -rw-r--r-- 1    512  513 3228 02-16 22:52 login.html
-rw-r--r-- 1    512  513 1077 02-16 23:41 mem_index.html
-rw-r--r-- 1    512  513 1046 02-07 00:54 procat.html
-rw-r--r-- 1    512  513 3474 02-07 09:01 product.html
-rw-r--r-- 1    512  513 3474 02-14 18:15 product_v2.html
-rw-r--r-- 1    512  513 4254 02-16 22:50 reg.html
-rw-r--r-- 1    512  513 2268 01-22 00:23 search.html
-rw-r--r-- 1    512  513 1347 02-07 08:59 shoes.html
-rw-r--r-- 1    512  513 3521 02-08 23:42 sitemap.html
-rw-r--r-- 1    512  513 1344 02-07 17:07 underwear.html

这是我PHP程序模板文件的属性。

其中红颜色的文件好像是所属用户不对,结果造成
Warning: fopen(index.html) [function.fopen]: failed to open stream: Permission denied in /home/www/sohu/index1.php on line 72
Warning: fwrite(): supplied argument is not a valid stream resource in /home/www/sohu/index1.php on line 73
Warning: fclose(): supplied argument is not a valid stream resource in /home/www/sohu/index1.php on line 74

哪位知道怎么解决啊?
好像是通过Secure File Transfer Client传上去还是VI编辑之后文件的属主就变了。
怎样才能彻底解决这个问题啊

谢谢各位老大了。

论坛徽章:
0
2 [报告]
发表于 2009-03-03 23:40 |只看该作者
已经解决,是我把问题想复杂了,就是文件权限的问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP