Mysql>create database svn;
Mysql>grant all privileges on svn.* to ‘svnmanager’@’localhost’identified by‘password’;
Mysql>flush privileges;
Mysql>quit;
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion realm"
AuthUserFile /var/www/svn/passwdfile
AuthzSVNAccessFile /var/www/svn/accessfile
Require valid-user
</Location>
<Directory "/var/www/svnmanager/">
AllowOverride None
Order deny,allow
Deny from all
Allow from all
</Directory>
在/var/www/svn目录下创建两个空文件passwdfile和accessfile。
#touch /var/www/svn/accessfile
#chown –R www-data.www-data passwdfile
#chown –R www-data.www-data accessfile
#cd /var/www/svnmanager
$svn_cmd = "/usr/bin/svn";
$svnadmin_cmd = "/usr/bin/svnadmin";
$svn_repos_loc = "/var/www/svn/repos";
$svn_passwd_file = "/var/www/svn/passwdfile";
$svn_access_file = "/var/www/svn/accessfile";
$svn_trash_loc = "";
$svnserve_user_file="";
$smtp_server = "smtp.mailserver.net";
$dsn = "mysqli://svnmanager:password@localhost/svn";
$admin_temp_password = "admin";
?>
启动apache2.mysql