维生素C.net

IronRuby, CLR/DLR, Debugging
posts - 88, comments - 369, trackbacks - 10, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

2008年7月18日

看了http://wiki.centos.org/HowTos/Subversion上的tutorial. 但是完全按照这个教程来做,必须忽略中间的一个问题:

在完成第1、2步后, tutorial上说:

Go test out whether or not you can access your repository from a web browser: http://yourmachine/repos. You should get a popup box asking for a username and password. If so, type in your credentials and you should be displayed with a Revision 0:/ page.

但是事实是你得到的只能是Forbidden, don't have permission的错误:

Forbidden

You don't have permission to access /repos on this server.


Apache/2.2.3 (CentOS) Server at dev.onlyvc.cn Port 80


这里正确的步骤是:

  1. /etc/conf.d/subversion.conf里配置的SVNPath /var/www/svn/repos是根目录
  2. 在/var/www/svn/repos/下用svnadmin create onlyvc来创建一个库
  3. chown --recursive apache.apache onlyvc给予apache的权限
  4. service httpd restart来重启apache
  5. 访问http://localhost/repos/onlyvc

这样才是正确的能看到Revision 1的做法. 其他的部分都没有问题.

good luck to you

posted @ 2008-07-18 00:53 new 维生素C.net() 阅读(161) | 评论 (1)编辑