CentOS SVN安装与配置(2)

打开web输入提示:
The requested URL /svn/project was not found on this server.
找不到服务,但apache的页面可以打开,应该是在/etc/httpd/conf.d/subversion.conf设置出错了,回头再查了一下发现错是出在“<Location /svn/projcet>”在这句里不应是指到项目,而是指到文件仓库就行了,应该是“<Location /svn>”

打开web输入弹出了验证窗口,输入后没进入提示:
Forbidden
You don't have permission to access /svn/project on this server.
应该是用户访问文件仓库的权限问题,还是解决一下权限的问题吧
主要原因是:/home/svn/project目录对于svn用户(如:svnroot)没有权限,可能是因为用svnadmin create时是以root运行的,所以,mod_dav_svn就没有相应权限等
修改了svn的权限:
chown -R test /home/svn/project
chgrp -R subversion /home/svn/project
chmod -R 777 /home/svn/project
再打开web,输入网址后直接进入了项目目录,很郁闷,直接就进入了,验证跑哪儿去了?2011-02-23 13:38
重启httpd后再进入,验证窗口弹出来了,也正确进入了。2011-02-23 13:43

打开web浏览器,输入用户名和密码,但总是要求验证,三次过后提示:
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
权限?密码错误?不可能是密码错误,再试试吧,新建用户后,再试的结果一样,肯定是权限的问题了今天烦了先告一段落吧      2011-02-22

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://127.0.0.1/wyyxss.html