WebSVN 2.3.1 + VisualSVN 安装与配置简记

一、所需的程序以及下载地址:

1)VisualSVN

2) PHP5

由于需要和apache2协同工作,注意下载VC6编译的版本

3) WebSVN

二、安装过程

1)安装VisualSVN

在安装程序的提示下,一路NEXT到底即可。注意选择

    a)是否启用https

    b)仓库所在路径,下文假定仓库路径为C:\repositories

详细的安装过程可以参考

http://www.cnblogs.com/ttzhang/archive/2008/11/03/1325102.html

2)配置VisualSVN

参照如下网址中的方法配置VisualSVN中的apache2服务器

http://stackoverflow.com/questions/17681

--------------------------------------------------------------------------------

I got WebSVN authentication working with VisualSVN server, albeit with a lot of hacking/trial-error customization of my own.

Here's how I did it:

If you haven't already, install PHP manually by downloading the zip file and going through the online php manual install instructions. I installed PHP to C:\PHP

Extract the websvn folder to C:\Program Files\VisualSVN Server\htdocs\

Go through the steps of configuring the websvn directory, i.e. rename configdist.php to config, etc. My repositories were located in C:\SVNRepositories, so to configure the authentication file, I set the config.php line so: $config->useAuthenticationFile('C:/SVNRepositories/authz'); // Global access file

Add the following to C:\Program Files\VisualSVN Server\conf\httpd-custom.conf :

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

<IfModule dir_module>
   DirectoryIndex index.html index.php
</IfModule>

<Location /websvn/>
   Options FollowSymLinks
   AuthType Basic
   AuthName "Subversion Repository"
   Require valid-user
   AuthUserFile "C:/SVNRepositories/htpasswd"
   AuthzSVNAccessFile "C:/SVNRepositories/authz"
   SVNListParentPath on
   SVNParentPath "C:/SVNRepositories/"
</Location>

This worked for me, and websvn will only show those directories that are authorized for a given user. Note that in order for it to work right, you have to provide "Main Level" access to everybody, and then disable access to certain sub-directories for certain users. For example, I have one user who doesn't have main level access, but does have access to a sub-level. Unfortunately, this person can't see anything in websvn, even if he links directly to filedetails.php for a file he's authorized to see. In my case it's not a big deal because I don't want him accessing websvn anyway, but it's something you'll want to know.

Also, this sets the server up for an ssl connection, so once you've set it up, the address will be and https:// address, not the regular http://.

 
--------------------------------------------------------------------------------

2)配置WebSVN 2.3.1

设置config.php文件

a)设置父目录

$config->parentPath("c:/repositories");

b) 允许下载

c)允许下载的深度

 

三、中文化

由于中文化程度直接影响在公司内部对版本控制的接收程度,为此silentmj花费了不少时间解决WebSVN231中的中文化问题。

目前网上资料主要针对WebSVN 1.6x版本拟写,与最新的2.3x版本相差较大。

详细情况请参见《WebSVN(2.3.1版本)中文注释以及中文路径乱码的解决方法》一文中的讨论。

 

http://www.cnblogs.com/silentmj/archive/2010/05/06/1728976.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值