SVN创建好仓库和用户后,把用户的账号和密码email 给用户使用,但是用户也想按照自

己的需求更改密码。自助地更改密码就只能使用svnmanager了。

svnmanager是建立在http Server的基础上的,因此我需要先安装apache和php插件,数据

库是Mysql。

Mysql数据库是系统自带的,没有什么版本的要求,就是在安装初始化的时候需要我们手

工的分配一个用户:
------------------------------------------------------------
create database svnmanager;
grant select, insert, update, delete, create, drop, alter on svnmanager.* to svnmanager

identified by 'xxxxxxx';
flush privileges;

------------------------------------------------------------
创建一个svnmanager的用户,并且将数据库svnmanager的各种权限赋予他。

安装依赖包
------------------------------------------------------------
mod_auth_mysql-3.0.0-4.x86_64.rpm
php-mbstring-5.1.6-5.el5.x86_64.rpm
php-mysql-5.1.6-5.el5.x86_64.rpm
php-pdo-5.1.6-5.el5.x86_64.rpm
php-pear-1.4.9-5.el5.x86_64.rpm

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

解包svnmanager.tar 并且在httpd.conf里面做关联.
------------------------------------------------------------
$lang = "en_US.UTF-8";
$htpassword_cmd = "/usr/bin/htpasswd";
$svn_cmd = "/usr/bin/svn";
$svnadmin_cmd = "/usr/bin/svnadmin";
$svn_repos_loc = "/repos";
$svn_passwd_file = "/repos/passwdfile";
$svn_access_file = "/repos/accessfile";
$svn_trash_loc = "/srv/svn/trash";
$svnserve_user_file="/repos/passwdfil"; //用户的明文密码
$smtp_server = "xxx.com";
$dsn = "mysqli://svnmanager:xxxx@localhost/svnmanager"; //mysql 的账号、密码和数据库
$admin_name = "admin"; initial name
$admin_temp_password = "admin";initial password

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

test PHP whether works。 Create a test php file and type the text as bellow:
------------------------------------------------------------
<?php phpinfo(); ?>
------------------------------------------------------------

搞完收工~!!!!其实看看英文文档学的东西还是挺多的。