一. 安装
软件包: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用户进行下面的操作)
# tar xvzf subversion-1.4.6.tar.gz
//进入解压后的目录
# 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
二.配置
//创建库文件所在的目录(svnroot用户进行下面的操作)
# mkdir /home/svnroot/repository
//进入subversion的bin目录
# cd /usr/local/subversion/bin
//创建仓库"test"
# ./svnadmin create /home/svnroot/repository/test
# cd /home/svnroot/repository/test
# ll
//看test里多了许多文件,说明Subversion安装成功了
//不让其他人有该目录的权限
# chmod 700 /home/svnroot/repository
修改Apache配置文件
# cd /usr/local/apadche/bin
# vi /usr/local/apache/conf/httpd.conf