svnmanager

#debian 7.7 


apt-get install apache2 libapache2-svn apache2-utils libapache2-mod-php5 subversion mysql-server mysql-client php5 php5-mysql php5-sqlite php-pear 

pear install -a VersionControl_SVN-0.3.4


#a2enmod dav_svn authz_svn 


#添加ServerName

sudo vim /etc/apache2/apache2.conf


ServerName 127.0.0.1


#安装svnmanager


tar xzvf svnmanager-1.10.tar.gz

mv svnmanager-1.10 /var/www/svnmanager


mysql> create database svn;

mysql> grant all privileges on svn.* to 'svnmanager'@'localhost' identified by 'svnmanager';

mysql> flush privileges;


cd /var/www/svnmanager/

cp config.php.linux config.php


vim /var/www/svnmanager/config.php


$dsn= "mysqli://svnmanager:svnmanager@localhost/svn";


#修改Apache配置文件,在末尾添加如下配置


<Location /svn>

        DAV svn

        SVNListParentPath on

        SVNParentPath /var/www/repos

        AuthType Basic

        AuthName "Welcome to SVN"

        AuthUserFile /var/www/repos/passwdfile

        AuthzSVNAccessFile /var/www/repos/accessfile

        Require valid-user

</Location>





sudo mkdir /var/www/repos

sudo touch /var/www/repos/passwdfile

sudo touch /var/www/repos/accessfile


sudo chown -R www-data /var/www/

sudo chmod  666  /var/www/repos/accessfile

sudo chmod  666  /var/www/repos/passwdfile


sudo /etc/init.d/apache2 restart


初始化用户:admin   密码:admin    这个是临时账户,登陆后立即新建一个admin用户覆盖




你可能感兴趣的:(Debian)