apache整合subversion

來源:互聯網
上載者:User

標籤: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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.