CENTOS7 build svn+apache+if.svnadmin implement Web Management SVN

Source: Internet
Author: User

Read Catalogue

    • 1. Introduction
    • 2. Software Preparation
    • 3. Build the SVN server repository
    • 4. Configure the installation php&if. Svnadmin
    • 5. Start the service
1. Introduction

The company recently wanted to migrate the Windows Server platform's SVN to the Linux platform; This is a successful test, so write an essay and record it.

It's written today, CentOS7. Build an SVN Server based on apache,http access, and If.svnadmin implement Web background visual management SVN

2. Software Preparation

Install related Packages

The installation process is as follows: 1  -y2-y

3. After the installation is complete, you can check if the installation is successful by the following command
[Email protected] ~]# httpd-version

[Email protected] ~]# Svnserve--version
[Email protected] ~]# ls/etc/httpd/modules/| grep SVN

Mod_dav_svn.so
3

[Email protected] ~]# vim/etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so<location/ Svn>dav svnsvnparentpath/var/www/svn   #svn的根目录AuthType Basic               #Basic认证方式AuthName "Authorization svn"   #认证时显示的信息AuthUserFile/var/www/svn/passwd      #用户文件 & password Authzsvnaccessfile/var/www/svn/authz  # Access rights control file require Valid-user            #要求真实用户, cannot be anonymous </Location>
3. Build the SVN server repository

Build the SVN repository with the following command

Where/VAR/WWW/SVN is the directory where the repository is ready to be placed, and this directory can place multiple code warehouses

[[email protected] ~]# mkdir/var/www/~]# svnadmin Create/var/www/svn/~]# ls/  var/www/svn/sungeek             --->  conf  db  format  hooks  locks   ~]# chown-r Apache.apache/var/www/~]# touch/var/www/svn/~]# Touch/ var/www/svn/authz

4. Configure the installation php&if. Svnadmin

Since If.svnadmin is written using PHP, we need to install PHP

[email protected] ~]# Yum install php-y mounting configuration if.svnadmin[[email protected]~]# wget http://Sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download[Email protected] ~]# cd/usr/src/[email protected] src]# Unzip If.svnadmin-stable-1.6.2[email protected] if.svnadmin-stable-1.6.2]# Cp-r if.svnadmin-stable-1.6.2/ /var/www/html/Svnadmin[[email protected]~]# CD/var/www/Html[[email protected] html]# chown-R apache.apache svnadmin[[email protected] html]# CD/var/www/html/Svnadmin[[email protected] html]# chmod-R777Data

5. Start the service

If you have a firewall turned on, you need to turn on httpd access

[Email protected] ~]# firewall-cmd--permanent--add-service=~]# firewall-cmd--permanent--add-service=  ~]# Firewall-cmd--reload

By viewing the file/usr/lib/systemd/system/svnserve.service, you know that the Svnserver configuration file is/etc/sysconfig/svnserve
Modify/etc/sysconfig/svnserve

[[email protected] ~]# vim/etc/sysconfig/svnserveoptions="-r/var/svn"=     = = ===> options="-r/var/www/svn" 

Enable the service with the following command

[Email protected] ~]# systemctl start Httpd.service

Make it boot from the command

[Email protected] ~]# Systemctl enable Httpd.service

Restart Apache

[Email protected] ~]# systemctl restart Httpd.service

After starting the Webserver service, the browser address input http://ip/svnadmin appears the configuration interface, enter the configuration information, enter each configuration information can be clicked next to the test is entered correctly, and finally save the configuration

After saving, you will be prompted to default account is Admin/admin.

After landing we can "add" under "repositories", adding the project directory;

Add users under "users";

Under "Access-paths", associate the user with the corresponding project and assign the relevant read and write permissions.

Sungeek Original, reprint remember note source Thank you!

http://www.cnblogs.com/Sungeek/

CENTOS7 build svn+apache+if.svnadmin implement Web Management SVN

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.