SubVersion Setup on Windows

Setting up your Subversion server

1. Download and install Apache 2.2.14
2. Download and install Subversion 1.5.6

3. Edit your Apache httpd.conf file at [APACHE_ROOT]/conf/httpd.conf to add the following lines of code to the end of the file:

# Configure Subversion repository

#replace the path with your own one

DAV svn
SVNPath "[PATH_OF_INITIALIZED_REPOSITORY]"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "[PATH_OF_USER_CONFIGURATION_FILE]"
Require valid-user

And make sure that you have the following items uncommented or added:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule dav_svn_module modules/mod_dav_svn.so

You might need to fully restart Apache service or restart your computer to let this modification take effect.

For "[PATH_OF_INITIALIZED_REPOSITORY]", you need to initialize it by the following command:

svnadmin create "[PATH_OF_INITIALIZED_REPOSITORY]"

Do remember not to initialize the directory by TortoiseSVN, otherwise, you will get the following error:

[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] (20014)Internal error: Expected FS format between '1' and '3'; found format '4'
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not fetch resource information.  [500, #0]
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem  [500, #160043]
[Sat Apr 03 09:27:45 2010] [error] [client 127.0.0.1] Could not open the requested SVN filesystem  [500, #160043]

For "[PATH_OF_USER_CONFIGURATION_FILE]", you need to create it by using the following command:

htpasswd -cm "[PATH_OF_USER_CONFIGURATION_FILE]" username

Save and close the httpd.conf file, then restart Apache

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值