Install subversion with Apache

Source: Internet
Author: User

######## Download the source code package ##########
Wget http://subversion.tigris.org/downloads/subversion-1.6.15.tar.gz;
Wget http://subversion.tigris.org/downloads/subversion-deps-1.6.15.tar.gz;
Wget http://developer.bjtu.edu.cn/apache/httpd/httpd-2.2.21.tar.gz;
Wget http://archive.apache.org/dist/apr/apr-1.4.2.tar.gz
Wget http://archive.apache.org/dist/apr/apr-util-1.3.10.tar.gz

Yum-y install GCC * OpenSSL-devel expat-devel OpenSSL-devel libxml2-devel glibc-common Gd-devel;

Install Apr, APR-util, and Apache

To install Apache, you must enable -- enable-Dav and -- enable-maintainer-mode to support subversion access.

See other blog posts to install the above software

The following describes how to install subversion.

Tar zxvf subversion-1.6.15.tar.gz;
Tar zxvf subversion-deps-1.6.15.tar.gz;
CD Subversion: 1.6.15;
. /Configure -- prefix =/Siteserver/svnserver -- With-apxs =/Siteserver/apache2/bin/apxs -- With-Apr =/usr/local/APR -- With-Apr-util = /usr/local/APR -- without-Berkeley-dB;
Make;
Make install;
CD ..;

The following is how to configure your SVN, which requires manual operations.

1. Create the SVN version library directory
Mkdir-PV/Siteserver/svnserver/svndata
Chown-RV www/Siteserver/svnserver/svndata
Chmod-RV 755/Siteserver/svnserver/svndata

2. Create an SVN version Library
/Siteserver/svnserver/bin/svnadmin create -- FS-type fsfs/Siteserver/svnserver/svndata/jken

3. Create an access control file
# Add a user name for the first time
/Siteserver/apache2/bin/htpasswd-C/Siteserver/svnserver/svndata/passwd Xiaoyue
/Siteserver/apache2/bin/htpasswd/Siteserver/svnserver/svndata/passwd Xiaoli

4. Create a local project control file
CD/Siteserver/svnserver/svndata/jken/Conf
VI authz

[Groups]
Admin = Xiaoyue, Xiaoli
[Jken:/]
@ Admin = RW

CAT/Siteserver/apache2/CONF/httpd. conf | grep SVN

Display
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
It indicates that the installation is successful.

VI/Siteserver/apache2/CONF/httpd. conf

Add

<Location/SVN>
Dav SVN
Svnparentpath/Siteserver/svnserver/svndata
Authtype basic
Authname "Subversion"
Authuserfile/Siteserver/svnserver/svndata/passwd
Authzsvnaccessfile/Siteserver/svnserver/svndata/jken/CONF/authz
Require valid-user
</Location>

5. Start Apache
/Siteserver/apache2/bin/apachectl start

Http: // 192.168.1.236/SVN/jken

Finished ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.