WebSVN 2.3.1 + VisualSVN 安装与配置简记
来源:互联网 发布:故宫博物院网络购票 编辑:程序博客网 时间:2024/06/01 09:38
一、所需的程序以及下载地址:
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
- WebSVN 2.3.1 + VisualSVN 安装与配置简记
- websvn的安装和配置
- VisualSVN Server安装配置与使用教程
- Gentoo Linux下Subversion + Websvn安装配置说明
- 安装配置websvn,支持web方式浏览svn
- Websvn的安装
- 20110627 VisualSVN安装与配置(Delphi7-2010/VS2010)
- Windows下VisualSVN Server的安装与配置方法(图文)
- Windows下VisualSVN Server的安装与配置方法(图文)
- 如何安装配置VisualSvn Manager
- 如何安装配置VisualSvn Manager .
- VisualSVN安装,配置,基本使用
- VisualSVN server安装与使用
- 在线安装VisualSVN Server 1.7.1与Trac
- 离线安装VisualSVN Server 1.7.1与Trac
- 天生丽质小仙女-快速秒会VisualSVN Server的安装与配置
- VisualSvn Server介绍(安装与使用)
- VisualSvn Server的安装与使用
- 以一种访问权限不允许的方式做了一个访问套接字的尝试
- jackson tojsonString 去除值为null的拼接
- Ubuntu 使用体会: (安装软件包)
- Apache CXF Webservice学习笔记(一)
- 希尔排序
- WebSVN 2.3.1 + VisualSVN 安装与配置简记
- FIFO、LRU、OPT这三种置换算法的缺页次数
- IOS开发——获取局域网IP
- 确保屏幕不会自动关闭
- 我的2012小结:不忘初心,方得始终
- 恺撒生活在充满危险和阴谋的时代. 恺撒面对的最困难的问题是生存. 为了生存, 他决定创造一种密码. 这种密码听起来难以置信, 如果不知 道方法, 没有人可以破解. 你是恺撒军队的一个上尉. 你的工
- 生活随笔:忙忙碌碌
- JavaScript如何处理事件
- Jetty 源代码分析之线程池