centos6.7 安装 svn 及 web管理工具 iF.SVNAdmin

系统环境,请查看《virtualbox5.0.8 centos6.7 mini 安装》

工具下载地址:http://svnadmin.insanefactory.com/


准备源码包svnadmin-1.6.2.zip ,上传至/opt 目录


#安装依赖软件

yum -y install httpd mod_dav_svn subversion php


vi /etc/httpd/conf.d/subversion.conf

#在最后增加


   DAV svn
   SVNParentPath /var/www/svn

    AuthType Basic
    AuthName "Restricted Access"

    #File will be created by SVNManager, keep location in mind!
    AuthUserFile /var/www/svnconfig/passwdfile

    Require valid-user
    #SSLRequireSSL

    #File will be created by SVNManager, keep location in mind
    AuthzSVNAccessFile /var/www/svnconfig/accessfile

   # Limit write permission to list of valid users.
   #
   #   # Require SSL connection for password protection.
   #   # SSLRequireSSL

   #   AuthType Basic
   #   AuthName "Authorization Realm"
   #   AuthUserFile /path/to/passwdfile
   #   Require valid-user
   #



mkdir -p /var/www/svn /var/www/svnconfig

touch /var/www/svnconfig/accessfile /var/www/svnconfig/passwdfile


unzip svnadmin-1.6.2.zip

cp -r iF.SVNAdmin-stable-1.6.2/ /var/www/html/svnadmin

chmod -R 777 /var/www/html/svnadmin/data/

chown -R apache:apache /var/www/html/svnadmin/

chmod -R 777 /var/www/svnconfig

service httpd start


vi /etc/sysconfig/iptables

service httpd restart


svnadmin create /var/www/svn/repository

chown -R apache:apache /var/www/svn/repository


svnadmin load repository < repository.dump

你可能感兴趣的:(linux)