请教

由 RealAMD 在 06-03-2004 21:24 发表:

请教

apache的匿名属于什么用户和组呢

比如我安装apache时是用root安装的,我的htdocs文件夹的拥有者是amd用户,当我以root用户什么把网页拷进去后,不能读取,显示“refuse to connect host....”,即使我把他的拥有者改成了amd还是不行,后来在httpd.config中加上了

1<directory "="" apache="" home="" htdocs="" league"="">   
2  
3Order allow,deny   
4  
5Allow from all   
6  
7</directory>

后才可以访问

这是为什么呢,难道我没加入一个文件夹都需要在配置文件了加上这些?

请教一下大家

谢谢!


由 Snoopy 在 06-03-2004 21:27 发表:


这样说人家就清楚了很多

你可以先看下htdocs文件夹权限如何,会不会不允许写入


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 RealAMD 在 06-03-2004 21:52 发表:


却是如斑竹所说

我刚才把htdocs的权限设成了777就好用了

是不是安装apache最好新建个用户组,一般不用root来安装啊

是不是每次安装后都得设置htdocs 的权限啊

谢谢各位了


由 Snoopy 在 06-03-2004 22:57 发表:


哪里跟你说777呢,呵呵

你将文件给了哪个用户后然后给个7权限给它

这方法是行不通的,但这方法你可以看看到底是不是权限问题


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some o

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus