当前位置: 首页 > 工具软件 > SVNManager > 使用案例 >

linux 部署svn manger,svnmanager安装

仰城
2023-12-01

apt-get update

apt-get install apache2 subversion libapache2-svn

apt-get install apache2-utils

a2enmod dav_svn

apt-get install mysql-server mysql-client

apt-get install php5 php5-mysql php5-sqlite

部署svnmanager

wget http://prdownloads.sourceforge.net/svnmanager/svnmanager-1.08.tar.gz

mkdir /var/www/html/svnadmin

搭建站点

DocumentRoot /var/www/html/svnadmin

ServerName svnadmin

Options -Indexes +FollowSymLinks

AllowOverride All

Order Allow,Deny

Allow from all

ErrorLog /var/www/logs/svnadmin.error.log

CustomLog /var/www/logs/svnadmin.access.log common

为svnmanager创建数据库

create database svnmanager;

grant all privileges on svnmanager.* to ‘svnmanager’@’localhost’ identified by ‘123456’;

flush privileges;

exit

配置svnmanager

cp config.php.linux ./config.php

编辑config.php

$htpassword_cmd = “/usr/bin/htpasswd”;

$svn_cmd = “/usr/bin/svn”;

$svnadmin_cmd = “/usr/bin/svnadmin”;

//Subversion locations

$svn_config_dir = “/var/www/svn/svnconfig”;

$svn_repos_loc = “/var/www/svn”;

$svn_passwd_file = “/var/www/svn/passwd”;

$svn_access_file = “/var/www/svn/access”;

$dsn = “mysql://svnmanager:123456@localhost/svnmanager”;

错误提示

Fatal error: Class ‘PEAR_ErrorStack’ not found in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\

svnmanager\svnmanager\

RepositoryModule\UserPrivilegesEditPage.php on line 204

解决方法:

pear uninstall VersionControl_SVN-0.5.0 卸掉0.5.0

pear install PEAR-1.9.4

pear install VersionControl_SVN-0.4.0 重装0.4.0就没报这个错了

 类似资料: