zoukankan      html  css  js  c++  java
  • 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


     

  • 相关阅读:
    [学习笔记]Java代码中各种类型变量的内存分配机制
    记录一次linux线上服务器被黑事件
    浅谈Facebook的服务器架构(组图)
    make: *** [sapi/cli/php] Error 1 解决办法
    linux CentOS 系统下如何将php和mysql命令加入到环境变量中
    Linux系统安装Apache 2.4.6
    日请求亿级的QQ会员AMS平台PHP7升级实践
    聊一聊淘宝首页和它背后的一套
    PHP与MySQL通讯那点事
    PHP多进程(4) :内部多进程
  • 原文地址:https://www.cnblogs.com/allenblogs/p/1791011.html
Copyright © 2011-2022 走看看