日期:2014-05-16 浏览次数:21036 次
wget http://mirror.bit.edu.cn/apache//apr/apr-1.4.8.tar.gz tar zxvf apr-1.4.8.tar.gz cd apr-1.4.8 ./configure --prefix=/usr/local/apr make && make install
wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.2.tar.gz tar zxvf apr-util-1.5.2.tar.gz cd apr-util-1.5.2 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/ make && make install
wget http://www.sqlite.org/2013/sqlite-autoconf-3080000.tar.gz tar zxvf sqlite-autoconf-3080000.tar.gz cd sqlite-autoconf-3080000 ./configure make && make install
wget http://www.openssl.org/source/openssl-1.0.1.tar.gz tar xzvf openssl-1.0.1.tar.gz cd openssl-1.0.1 ./config --prefix=/usr/local/openssl make && make install
wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.2.25.tar.gz tar zxvf httpd-2.2.25.tar.gz export LDFLAGS=-ldl cd httpd-2.2.25 ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --enable-modules=so --enable-dav --enable-maintainer-mode --enable-rewrite --enable-ssl --with-ssl=/usr/local/openssl make && make install
cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd #编辑/etc/init.d/httpd,在第二行增加如下内容 #chkconfig: 2345 85 35 chkconfig httpd on
wget http://jaist.dl.sourceforge.net/project/libpng/zlib/1.2.8/zlib-1.2.8.tar.gz tar -xvzf zlib-1.2.8.tar.gz cd zlib-1.2.8 ./configure make && make install
wget http://mirror.esocc.com/apache/subversion/subversion-1.8.4.tar.gz tar zxvf subversion-1.8.4.tar.gz mkdir -p ./subversion-1.8.4/sqlite-amalgamation cp ./sqlite-autoconf-3080000/sqlite3.c ./subversion-1.8.4/sqlite-amalgamation cd subversion-1.8.4 ./configure --prefix=/opt/svn/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-zlib --enable-maintainer-mode make && make install
cp /opt/svn/subversion/libexec/mod_authz_svn.so /usr/local/apache2/modules/ cp /opt/svn/subversion/libexec/mod_dav_svn.so /usr/local/apache2/modules/
#加载整合svn所需so文件 LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location /> DAV svn SVNParentPath /opt/svn/data/ #svn 根目录 SVNListParentPath On SVNAutoversioning On SVNReposName "svn" AuthzSVNAccessFile /opt/svn/subversion/conf/authz.conf #目录分组权限 Auth