SVN server setup 1

***prerequisite***
Install all softwares with root privilige

1. Apache
1.1 Apache installation
 1) tar zxvf httpd-2.2.15.tar.gz
 2) cd scrlib/apr
 3) ./configure --prefix=/usr/local/apr/ --enable-so --enable-dav --cache-file=/dev/null --srcdir=/home/svn/Software/httpd-2.2.15/srclib/apr --exec-prefix=/usr/local/apr --libdir=/usr/local/apr/lib --includedir=/usr/local/apr --bindir=/usr/local/apr/bin --datadir=/usr/local/apr --with-installbuilddir=/usr/local/apr/build
 4)make
 5)make install
 6)cd ..
 7)cd apr-util
 8)./configure --with-apr=/usr/local/apr/bin/ --with-ldap-lib=/usr/local/apr/lib/ --with-ldap=ldap
 9)make
 10)make install
 11)cd ../..
 12)./configure --enable-ldap --enable-authnz-ldap --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --enable-mods-shared=all
 13)make
 14)make install

1.2 Apache check
 1)Check status
   /etc/rc.d/init.d/httpd status
 2)Start
   /etc/rc.d/init.d/httpd start
 3)stop
   /etc/rc.d/init.d/httpd stop
 4)restart
   /etc/rc.d/init.d/httpd restart
 5)Update httpd.conf
   ServerName 192.168.6.200
   then restart the service, check you can access it by http://192.168.6.200


2. Subversion
2.1 Neon installation
  1)tar zxvf neon-0.29.3.tar.gz
  2)./configure --enable-shared --with-ssl=openssl
  3)make
  4)make install
Q&A
  1)error:configure: error: Subversion requires SQLite
--------------------------------------------------------------
    Read the manual.
Code:
* SQLite  (REQUIRED for client and server)

   Subversion uses SQLite to manage some internal databases.
SQLite is faster and more efficient for storing small bits or huge amounts of data. Solution is install SQLite and stop bitching about it.
--------------------------------------------------------------

2.2 sqlite installation
  1)tar zxvf sqlite-3.7.0.tar.gz
  2)cd sqlite-3.7.0
  3)./configure --disable-tcl --prefix=/usr/local/sqlite3
  3)make
  4)make install
  5)cp /usr/local/sqlite3/include /usr/include
  6)cp /usr/local/sqlite3/lib/lib* /usr/lib/
  7)cp /usr/local/sqlite3/bin/sqlite3 /bin/

2.3 Subversion installation
 1)tar zxvf subversion-1.6.12.tar.gz
 2)cd subversion-1.6.12
 2)./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --with-neon=/usr/local/ --with-ssl --enable-shared="yes" --enable-static="no"
 3)make
 4)make install
 5)Check the configuration in httpd.conf
   a)Thos two modules shoud be loaded automatically.

  LoadModule Dav_svn_module   modules/mod_dav_svn.so
      LoadModule authz_svn_moduel module/mod_authz_svn.so
   b)svn
      <Location /svn>
     DAV svn
     SVNParentPath /svn/repos/
     SVNListParentPath on
     AuthType Basic
     AuthName "Subversion Repositories"
     AuthUserFile /usr/local/apache2/bin/passwd
     Require valid-user
     </Location>

   c)Listen 192.168.6.200:80
     SeverName 192.168.6.200

   d)Create a vaild user

       #cd /usr/local/apache2/bin

       #htpasswd -c passwd test

       #Enter your password:******

 

   e)restart apache
      #cd /usr/local/apache2/bin
      #./apachectl restart

3. Create Repository
 1)#svnadmin create /svn/repos/test    #test is repository name
 2)#chown daemon:daemon -R /svn/repos


 

转载于:https://www.cnblogs.com/allenblogs/archive/2010/08/03/1791011.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值