一. 安裝
軟件包:httpd-2.23 下載地址http://apache.justdn.org/httpd/httpd-2.2.3.tar.gz
apr-1.27, apr-util-1.27 http://apache.justdn.org/apr/
安裝apr,apr-util
# tar zxvf apr-1.2.7.tar.gz
# cd apr-1.2.7
# ./configure --prefix=/usr/local/apr
# make&make install
# tar zxvf apr-util-1.2.7.tar.gz
# cd apr-util-1.2.7
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make&make install
安裝apache
# tar zxvf httpd-2.2.3.tar.gz
# cd httpd-2.2.3
# ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite=share --enable-proxy=share --enable-proxy-ajp=share --enable-dav=share --enable-dav-fs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/aprutil/
# make&make install
下載新的svn壓縮包http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
//解壓SubVersion安裝包(root用戶進(jìn)行下面的操作)
# tar xvzf subversion-1.4.6.tar.gz
//進(jìn)入解壓后的目錄
# cd Subversion-1.4.6
//配置subversion安裝
#./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local/subversion
--with-apr=/usr/local/apr --with-apr-util=/usr/local/aprutil --with-ssl --with-zlib
--enable-maintainer-mode
//安裝
# make & make install
二.配置
//創(chuàng)建庫(kù)文件所在的目錄(svnroot用戶進(jìn)行下面的操作)
# mkdir /home/svnroot/repository
//進(jìn)入subversion的bin目錄
# cd /usr/local/subversion/bin
//創(chuàng)建倉(cāng)庫(kù)"test"
# ./svnadmin create /home/svnroot/repository/test
# cd /home/svnroot/repository/test
# ll
//看test里多了許多文件,說明Subversion安裝成功了
//不讓其他人有該目錄的權(quán)限
# chmod 700 /home/svnroot/repository
修改Apache配置文件
# cd /usr/local/apadche/bin
# vi /usr/local/apache/conf/httpd.conf