一:相關版本subversion
二:安裝準備#cd /opt# tar zxvf httpd-2.2.17.tar.gz# tar zxvf subversion-deps-1.6.15.tar.gz# tar zxvf subversion-1.6.15.tar.gz到這一步,如果是32位的linux系統,可以直接安裝httpd了,如果地64位的linux,需要進行以下操作,進行重新編譯:1、刪除安裝目錄下的configure檔案,在我的環境中是httpd-2.2.6/configure2、刪除“httpd-2.2.17/srclib/apr-util/configure”3、通過以下命令重建編譯檔案(以下命令在http-2.2.17/目錄下運行)#./buildconf通過以上重建編譯檔案,現在可以擁有64位的apr-util了
三:httpd的安裝.
# ./configure --prefix=/usr/local/apache1 --enable-so --enable-dav --enable-dav-fs --enable-ldap --enable-authnz-ldap --with-included-apr --with-ldap --with-ldap-include=/usr/lib64/evolution-openldap/include --with-ldap-lib=/usr/lib64 --with-apr=srclib/apr/apr-1-config --with-apr-util=srclib/apr-util/apu-1-config
make&make install
四:subversion的安裝
# ./configure --with-apxs=/usr/local/apache1/bin/apxs --with-apr=/usr/local/apache1/bin/apr-1-config --with-apr-util=/usr/local/apache1/bin/apu-1-config --prefix=/usr/local/subversion --with-ssl --with-zlib=/usr/lib64
# make && make install
configure 遇到報錯:configure: error: Subversion requires SQLite
下載最新sqlite sqlite-autoconf-3070701.tar.gz 拷貝到如下目錄
cp sqlite3.c ~/lamp/subversion-1.6.17/sqlite-amalgamation/
make 遇到報錯:/usr/bin/ld: cannot find -lexpat
yum install expat-devel
五:建立
# cd /opt/subversion/bin/
# mkdir /svn
# ./svnadmin create /svn/test
# ls /opt/ccxesvn/test/
//如果ls /opt/ccxesvn /test/ 出現了下面的內容,就說明subversion安裝成功了.
conf dav db format hooks locks README.txt
啟動服務:/usr/local/subversion/bin/svnserve -d
六:修改目錄許可權#
chmod -R 777 /svn
域認證,其他使用者沒有許可權訪問
七:修改Apache的設定檔1):開啟apache/conf/httpd.conf檔案2):修改httpd.conf檔案,
LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 600
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600
<Location /repos>
DAV svn
SVNParentPath /svn
SVNListParentPath On
Order allow,deny
Allow from all
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthName "example work"
AuthLDAPURL "=*)"
AuthLDAPBindDN "demo@office.net"
AuthLDAPBindPassword "123456"
Require ldap-group CN=ITdev,OU=group,DC=office,DC=net
</Location>
重啟apache