wget http://archive.apache.org/dist/httpd/httpd-2.2.18.tar.gz
./configure --prefix=/opt/apache --enable-so --enable-dav --enable-dav-fs --enable-maintainer-mode --with-included-apr --enable-rewrite --
--enable-dav --enable-dav-fs 是支持svn认证使用的
--enable-maintainer-mode 开启调试模式
--with-included-apr 使用内置的apr
--enable-rewrite 开启rewrite
--enable-ssl 开启SSL
--enable-proxy 开启proxy支持
--enable-proxy-http 开启proxy http支持
make install
useradd -M apache
vi /opt/apache/conf/httpd.conf
++++++++++++++++++++++++++++++
User apache
Group apache
++++++++++++++++++++++++++++++
2.编译安装subversion
wget http://subversion.tigris.org/downloads/subversion-1.6.13.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.13.tar.bz2
subversion-deps-1.6.13.tar.bz2是subversion的依赖包,解压后会自动放在先解压的subversion-1.6.13目录中;
tar jxvf subversion-deps-1.6.13.tar.bz2
./configure --prefix=/opt/subversion --with-apxs=/opt/apache/bin/apxs --with-apr=/opt/apache/bin/apr-1-config --with-apr-
make install
vi /opt/apache/conf/httpd.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Subversion default settings
Include conf/extra/httpd-svn.conf
cd /opt/apache/conf/extra/
DAV svn
SVNListParentPath ON
SVNParentPath /data/svn_repo
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /opt/subversion/conf/svn_passwdfile
AuthzSVNAccessFile /opt/subversion/conf/svn_accessfile
Require valid-user
</Location>
创建subversion核心配置文件
/opt/apache/bin/htpasswd -c /opt/subversion/conf/svn_passwdfile Songxy
vi /opt/subversion/conf/svn_accessfile
g_manager = Songxy
@g_manager = rw
* = r
mkdir -p /data/svn_repo
/opt/subversion/bin/svnadmin create /data/svn_repo/project1
chown -R apache:apache /data/svn_repo
/opt/apache/bin/apachectl start