Installation of subversion under Red Banner Linux Server 5.0 __linux

Source: Internet
Author: User
Tags auth mkdir openssl svn knowledge base

The required media for installation can be downloaded from the following address:

Http://cid-28cbb5d7050d4325.skydrive.live.com/self.aspx/.Public/Subversion-1.4.2%5E_for%5E_RegFlagLinux5.0.rar

Installation steps:

1 uninstall reg Flag DC Server Linux 5.0 with httpd and svn service

Rpm-qa | grep http

Clears the. 2AX files listed individually

RPM-E Httpd-2.0.52-12.ent.2ax--nodeps

RPM-E Httpd-manual-2.0.52-12.ent.2ax--nodeps

RPM-E Httpd-devel-2.0.52-12.ent.2ax--nodeps

RPM-E Httpd-suexec-2.0.52-12.ent.2ax--nodeps

Uninstall SVN

Rpm-qa | grep SVN

RPM-E mod_dav_svn-1.1.1-2.1--nodeps

2) Install Apr

Tar zxvf apr-1.3.8.tar.gz

CD apr-1.3.8

./configure--PREFIX=/USR/LOCAL/APR

Make

Make install

3) installation Apr-util

Tar zxvf apr-util-1.3.9.tar.gz

CD apr-util-1.3.9

./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR

Make

Make install

4) Installing SSL

Tar zxvf openssl-0.9.8k.tar.gz

CD openssl-0.9.8k

./config--prefix=/usr/local/openssl

Make

Make install

5) installation httpd

Tar zxvf httpd-2.2.13.tar.gz

CD httpd-2.2.13

./configure--prefix=/usr/local/apache2--enable-so--enable-rewrite=share--enable-proxy=share--enable-proxy-ajp= Share--enable-dav=share--enable-dav-fs--with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr-util/-- Enable-ssl=static--with-ssl=/usr/local/openssl--enable-mods-shared=all

Make

Make install

6) Install Subversion

Tar zxvf subversion-1.4.2.tar.gz

Tar zxvf subversion-deps-1.4.2.tar.gz

CD subversion-1.4.2

./configure--WITH-APXS=/USR/LOCAL/APACHE2/BIN/APXS--prefix=/usr/local/subversion--WITH-APR=/USR/LOCAL/APR-- With-apr-util=/usr/local/apr-util--with-ssl--with-zlib--enable-maintainer-mode

Make

Make install

7 Set parameters, environment variables and self-starter

Ø change the port of httpd from 80 to 8000

Vi/usr/local/apache2/conf/httpd.conf

Will listen 80, modified to listen 8000

Ø add path in profile to facilitate the launch of Apache

Vi/etc/profile

Add similar content to the last few lines:

Path=/usr/local/subversion/bin:/usr/local/apache2/bin: $PATH

Ø increase the command to automatically start Apache in the/etc/rc.local

/usr/local/apache2/bin/apachectl start

8) create svn repository

Ø Log back in Telnet

Exit

Mkdir/svn

Ø Create Knowledge Base repos

Svnadmin Create/svn/repos

Ø Create Permissions Folder

Mkdir/svn/auth

Ø Create user PMO

Htpasswd-c/svn/auth/authfile PMO

Enter password (test): 1234

Ø Set permissions

In the following example, the user PMO is set to RW (read/write) permissions for/repos.

Vi/svn/auth/authz.conf

Enter the following:

[Groups]

Admin=pmo

[repos:/]

@admin =RW

As shown in the following illustration:

Exit after saving.

Ø Modify File access rights

Execute the following command:

Chmod-r 777/SVN

9) Modify httpd.conf, add svn

Vi/usr/local/apache2/conf/httpd.conf

At the end of httpd.conf, add a location:

<location/>

DAV SVN

Svnparentpath/svn

Authzsvnaccessfile/svn/auth/authz.conf

AuthType Basic

AuthName "Login.authentication"

Authuserfile/svn/auth/authfile

Require Valid-user

</Location>

The following figure:

Restart Apache:

SH apachectl restart

) Verification Test

Ø start Apache

Exit Telnet and log in again

Exit

Post-Logon execution

SH apachectl start

In IE, access to the http://server IP address: 8000/repos, the following page appears, indicating the success of Apache installation.

Ø Enter the PMO account, should be able to log in

Enter User: PMO, Password: 1234

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.