1. Preparatory work
Yum install-y gcc gcc-c++ #安装gcc
Yum-y Install Perl #安装perl
Setenforce 0 #关闭selinux
Sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config
Service Iptables Stop #关闭iptables
Chkconfig iptables off
2. Install Apr
./configure--PREFIX=/USR/LOCAL/APR
Make && make install
3, Installation Apr-util
./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Make && make install
4, Installation Pcre
./configure--prefix=/usr/local/pcre
Make && make install
5. Installing Apache
./configure--prefix=/usr/local/apache--enable-dav--enable-so--enable-maintainer-mode--with-apr=/usr/local/apr- -with-apr-util=/usr/local/apr-util--with-pcre=/usr/local/pcre
Make && make install
Remove the/usr/local/apache/conf/httpd.conf file servername www.example.com:80 Comment
\cp/usr/local/apache/bin/apachectl/etc/init.d/httpd
/usr/local/apache/bin/apachectl-k Start or/etc/init.d/httpd start
6. Install SQLite
./configure
Make && make install
7, installation Zlib
./configure
Make && make install
8. Install Subversion
./configure--prefix=/usr/local/subversion--with-apache-libexecdir=/usr/local/apache/modules--with-apxs=/usr/ Local/apache/bin/apxs--WITH-APR=/USR/LOCAL/APR--with-apr-util=/usr/local/apr-util
Make && make install
Added in/usr/local/apache/conf/httpd.conf:
LoadModule Authz_svn_module modules/mod_authz_svn.so
LoadModule Dav_svn_module modules/mod_dav_svn.so
9. When creating a new repository, add in/usr/local/apache/conf/httpd.conf
<Location/svn/test>
Limitrequestbody 52428800000
DAV SVN
Svnpath/data/svn/test_svn
Authzsvnaccessfile/data/svn/accessconf/authz
AuthType Basic
AuthName "Tester Subversion repository"
Authuserfile/data/svn/accessconf/passwd.conf
Require Valid-user
</Location>
This article is from the "small White Nest" blog, please be sure to keep this source http://qing429.blog.51cto.com/5781009/1590728
Apache Integrated Subversion