首页 > 代码库 > apache集成subversion
apache集成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