標籤:svn subversion
1、準備工作
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、安裝apr
./configure --prefix=/usr/local/apr
make && make install
3、安裝apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
4、安裝pcre
./configure --prefix=/usr/local/pcre
make && make install
5、安裝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
去掉/usr/local/apache/conf/httpd.conf檔案ServerName www.example.com:80處的注釋
\cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
/usr/local/apache/bin/apachectl -k start 或者/etc/init.d/httpd start
6、安裝sqlite
./configure
make && make install
7、安裝zlib
./configure
make && make install
8、安裝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
在/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、建立版本庫時,在/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>
本文出自 “小白的小窩” 部落格,請務必保留此出處http://qing429.blog.51cto.com/5781009/1590728
apache整合subversion