APACHE+SVN configuration Process

Source: Internet
Author: User
Tags md5 encryption svn client install perl

SVN Installation Guide

Recommendation: Source Installation

Environment: centos6.2_x64+apache2.2.22+subversion1.6.9

History: 1. It has been installed once, the browser and SVN client can be used normally, but the eclipse download times wrong.

2. The installation encountered zlib problem, the system display has been installed, but subversion is not recognized at compile time. In addition, the source code is compiled after installation

Subversion for Linux installation (Svn+apache+linux)

The packages are prepared as follows:

Httpd-2.2.22tar.gz

Subversion-1.4.5.tar.gz

1. Install Apr and apr-util (these two packages are in the HTTPD-2.2.22.TAR.BZ2 package)

[Email protected] soft]# tar zxvf apr-1.2.7.tar.gz

[Email protected] soft]# CD apr-1.2.7

[Email protected] soft]#./configure

[[email protected] soft]# make

[[email protected] soft]# make install

[Email protected] soft]# tar zxvf apr-util-1.2.7.tar.gz

[Email protected] soft]# CD apr-util-1.2.7

[Email protected] soft]#/configure--with-apr=/usr/local/apr/

[[email protected] soft]# make

[[email protected] soft]# make install

2. Compile and install Apache

[Email protected] soft]# tar zxvf httpd-2.2.22.tar.bz2

[Email protected] soft]# CD httpd-2.2.22

[Email protected] soft]#/configure--prefix=/chroot/apache--enable-so--enable-dav=share--enable-dav-fs-- with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr/bin/

[[email protected] soft]# make

[[email protected] soft]# make install

[[email protected] soft]#/usr/local/apache/bin/apachectl start

3, install subversion-1.6.9 (configure if you need to add Java path)

[Email protected] soft]# tar zxvf subversion-1.6.9.tar.gz

[Email protected] soft]# CD subversion-1.6.9

[Email protected] soft]#/configure--prefix=/usr/local/svn--with-apxs=/chroot/apache/bin/apxs--with-apr=/usr/ local/apr/--with-apr-util=/usr/local/apr/bin--with-jdk=/usr/java/jdk1.7.0_01/

[[email protected] soft]# make

[[email protected] soft]# make install

4. See subversion Two dynamic libraries have been installed successfully

[Email protected] soft]# vi/usr/local/apache/conf/httpd.conf

See the following two modules to illustrate the success of the installation

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

5. Configure SVN

Configure users to change their own password functionality, not configurable

# This is the user can change the password by itsself

[Email protected] soft]# vi/usr/local/apache/conf/httpd.conf

Alias/changpasswd/"/USR/LOCAL/APACHE/HTDOCS/CHANGEPASSWD"

<directory "/usr/local/apache/htdocs/" >

Require Valid-user

# How to authenticate a user

AuthType Basic

AuthName "Subversion Tools"

authuserfile/svndata/svn/passwd

</Directory>

Configure users to change their own password functionality, not configurable

<Location/svn/>

DAV SVN

Svnparentpath/chroot/svndata

Svnlistparentpath on

# svnindexxslt "/svnindex.xsl" is used to configure the SVN Web page, it is recommended not to use!

AuthType Basic

AuthName "Subversion Repository"

authuserfile/usr/local/svn/passwd

Authzsvnaccessfile/usr/local/svn/authz

Require Valid-user

</Location>

6. Build SVN storage Warehouse

[Email protected] soft]# mkdir-p/chroot/svndata

[Email protected] soft]# svnadmin create/svndata/svn/rds/rds/

Back up the previous SVN library

[Email protected] soft]# svnadmin dump/svndata/svn/rds/rds/>/home/rds

Restore the backed-up data to a local

[Email protected] soft]# Svnadmin load/svndata/svn/rds/rds/

7. Establish local access control files

[Email protected] ~]# cd/svndata/svn/

[Email protected] svn]#/usr/local/apache/bin/htpasswd passwd test123

New Password:

Prompts you to enter the password, the default is MD5 encryption

8. Establish local project control files

[Email protected] svn]# VI Auth

The contents of my file are:

[Groups]

admin = Ryanwu

Rdc_admin = wangning

user = Shanweimin,wuweimin,wangning

Rdc_user = wangning,dengby,cjing,wangl,denby,gaowei,hzming,lxcan,qnhui,zhzg,yuhuan,ltfei,lyli,wfpeng,zqbing, Lcyun,daili,wliang,lfeng

, Qqchuang,asqiao,lsna,wangpf,gjia

Product_user = Lgang,chxx,zlli,qqqiong,speng,zyang,lguang,cbfen

[/]

@admin = RW

wangning = RW

Mobohan = RW

Lgang = RW

[/RDC]

@rdc_admin = RW

@rdc_user = RW

WANGFP = RW

[/PC]

Cbfen = RW

[/sharedoc]

* = RW

[/rdc/weekrpt]

@rdc_user = RW

ZHZG = RW

Lyli = RW

[/rdc/reference]

* = RW

[/rdc/sharedoc]

* = RW

[/software]

@user = R

Shanweimin = RW

* =

[Reference]

* = RW

[/rdc/gdas]

@rdc_user = RW

Dengby = RW

Daili = RW

Yuhuan = RW

9, install the client, access the server

http://192.168.1.208/svn/

10, to the basic end of this installation

Modify the/svndata/svn/rds/rds property, otherwise it will cause the file upload to fail;

[Email protected] svn]# CD/SVNDATA/SVN

[Email protected] svn]# chmod-r svnadmin.svnadmin *

[[Email protected] svn]# CD RDS

[Email protected] svn]# chmod-r svnadmin.svnadmin RDS

Attached: Problems that may arise

Can ' t locate extutils/embed.pm in @INC (@INC contains

------

#yum Install Perl-extutils-cbuilder Perl-extutils-makemaker

#yum Install CPAN

#cpan Install Extutils::install

#perl-mcpan-e Shell

#install CGI (optional)

#yum Install perl-extutils-embed

#perl-mcgi-e ' print ' cgi.pm version $CGI:: version\n ";"

#find/-name Cgi.pm-print 2>/dev/null

solve!!

APACHE+SVN configuration Process

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.